У меня возникли проблемы при создании приложения для iOS с помощью Expo и React Native. После запуска команды
Код: Выделить всё
npx expo run:ios
Код: Выделить всё
CommandError: Failed to build iOS project. "xcodebuild" exited with error code 65.
Код: Выделить всё
Compiling react-native Pods/FlipperKit » FLEXNetworkTransaction.m
- Удаление кешей Xcode.
- Удаление производных данных с помощью команды
Код: Выделить всё
rm -rf ~/Library/Developer/Xcode/DerivedData
- Следовал инструкциям для верхнего ответа на аналогичный вопрос о stackoverflow здесь.
- Чип: чип Apple M1 Pro.
- macOS: Sonoma 14.3.1
- Версия узла: 14.19.2
- Версия для реагирования: 0.70.8
- Версия Xcode: 15.3
- Версия Cocoapods: 1.12.1
[*]react-native-flipper: 0.177.0
[*]expo-community-flipper: 47.0.2
Буду благодарен за любую помощь.
Изменить: ниже приведены журналы ошибок, которые я получаю в терминале.
Код: Выделить всё
Compiling react-native Pods/FlipperKit » FlipperPlatformWebSocket.mm
❌(/Users/....filePathHere.../ios/Pods/FlipperKit/ios/Pods/Headers/Private/Flipper/FlipperTransportTypes.h:24:14)
22 | Possible events are but not limited to: open, close, error.
23 | */
> 24 | typedef std::function SocketEventHandler;
| ^ no template named 'function' in namespace 'std'
25 |
26 | /**
27 | Defines a socket message received handler.
❌(/Users/....filePathHere.../ios/Pods/FlipperKit/ios/Pods/Headers/Private/Flipper/FlipperTransportTypes.h:29:14)
27 | Defines a socket message received handler.
28 | */
> 29 | typedef std::function SocketMessageHandler;
| ^ no template named 'function' in namespace 'std'
30 |
31 | /**
32 | Defines a socket certificate provider. The provider is responsible of returning
❌(/Users/....filePathHere.../ios/Pods/FlipperKit/ios/Pods/Headers/Private/Flipper/FlipperTransportTypes.h:38:14)
36 | @param length Length of the password buffer.
37 | */
> 38 | typedef std::function
| ^ no template named 'function' in namespace 'std'
39 | SocketCertificateProvider;
40 |
41 | /**
❌(/Users/....filePathHere.../ios/Pods/FlipperKit/ios/Pods/Headers/Private/Flipper/FlipperTransportTypes.h:45:14)
43 | that data has been sent to the receiving end.
44 | */
> 45 | typedef std::function SocketSendHandler;
| ^ no template named 'function' in namespace 'std'
46 |
47 | /**
48 | Defines a socket send completion handler for the cases where a response is
❌(/Users/....filePathHere.../ios/Pods/FlipperKit/ios/Pods/Headers/Private/Flipper/FlipperTransportTypes.h:54:14)
52 | response will contain text describing the error.
53 | */
> 54 | typedef std::function
| ^ no template named 'function' in namespace 'std'
55 | SocketSendExpectResponseHandler;
56 |
57 | /**
❌(/Users/....filePathHere.../ios/Pods/FlipperKit/ios/Pods/FlipperKit/iOS/FlipperKit/FlipperPlatformWebSocket.mm:57:46)
55 |
56 | char PASSWORD[512] = {};
> 57 | auto certificatePath = _certificateProvider(&PASSWORD[0], 512);
| ^ called object type 'facebook::flipper::SocketCertificateProvider' is not a function or function pointer
58 |
59 | NSString* certificatePathObjC =
60 | [NSString stringWithUTF8String:certificatePath.c_str()];
❌(/Users/....filePathHere.../ios/Pods/FlipperKit/ios/Pods/FlipperKit/iOS/FlipperKit/FlipperPlatformWebSocket.mm:158:18)
156 | // not notify the delegate. SocketRocket only triggers the close event
157 | // when the connection is closed from the server.
> 158 | _eventHandler(facebook::flipper::SocketEvent::CLOSE);
| ^ called object type 'facebook::flipper::SocketEventHandler' is not a function or function pointer
159 | // Clear the socket delegate before close. Ensures that we won't get
160 | // any messages after the disconnect takes place.
161 | _socket.delegate = nil;
❌(/Users/....filePathHere.../ios/Pods/FlipperKit/ios/Pods/FlipperKit/iOS/FlipperKit/FlipperPlatformWebSocket.mm:185:16)
183 |
184 | - (void)webSocketDidOpen:(SRWebSocket*)webSocket {
> 185 | _eventHandler(facebook::flipper::SocketEvent::OPEN);
| ^ called object type 'facebook::flipper::SocketEventHandler' is not a function or function pointer
186 |
187 | if (!_keepAlive) {
188 | __weak auto weakSocket = _socket;
❌(/Users/....filePathHere.../ios/Pods/FlipperKit/ios/Pods/FlipperKit/iOS/FlipperKit/FlipperPlatformWebSocket.mm:206:18)
204 | */
205 | if ([[error domain] isEqual:NSOSStatusErrorDomain] && [error code] == -9806) {
> 206 | _eventHandler(facebook::flipper::SocketEvent::SSL_ERROR);
| ^ called object type 'facebook::flipper::SocketEventHandler' is not a function or function pointer
207 | } else {
208 | _eventHandler(facebook::flipper::SocketEvent::ERROR);
209 | }
❌(//Users/....filePathHere.../ios/Pods/FlipperKit/ios/Pods/FlipperKit/iOS/FlipperKit/FlipperPlatformWebSocket.mm:208:18)
206 | _eventHandler(facebook::flipper::SocketEvent::SSL_ERROR);
207 | } else {
> 208 | _eventHandler(facebook::flipper::SocketEvent::ERROR);
| ^ called object type 'facebook::flipper::SocketEventHandler' is not a function or function pointer
209 | }
210 | _socket = nil;
211 | }
❌(/Users/....filePathHere.../ios/Pods/FlipperKit/iOS/FlipperKit/FlipperPlatformWebSocket.mm:217:16)
215 | reason:(NSString*)reason
216 | wasClean:(BOOL)wasClean {
> 217 | _eventHandler(facebook::flipper::SocketEvent::CLOSE);
| ^ called object type 'facebook::flipper::SocketEventHandler' is not a function or function pointer
218 | _socket = nil;
219 | }
220 |
❌(/Users/....filePathHere.../ios/Pods/FlipperKit/iOS/FlipperKit/FlipperPlatformWebSocket.mm:224:20)
222 | if (message && _messageHandler) {
223 | NSString* response = message;
> 224 | _messageHandler([response UTF8String]);
| ^ called object type 'facebook::flipper::SocketMessageHandler' is not a function or function pointer
225 | }
226 | }
227 |
› Compiling react-native Pods/FlipperKit » FlipperKitNetworkPlugin.mm
› Compiling react-native Pods/FlipperKit » FlipperKitLayoutPlugin.mm
› Compiling react-native Pods/FlipperKit » FlipperKit-dummy.m
› Compiling react-native Pods/FlipperKit » FlipperCppBridgingResponder.mm
› Compiling react-native Pods/FlipperKit » FlipperCppBridgingConnection.mm
› Compiling react-native Pods/FlipperKit » FlipperClient.mm
› Compiling react-native Pods/FlipperKit » FLEXNetworkTransaction.m
› Compiling react-native Pods/FlipperKit » FLEXNetworkRecorder.mm
› Compiling react-native Pods/FlipperKit » FLEXNetworkObserver.mm
Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'ViewTrail' from project 'ViewTrail')
Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'ViewTrail' from project 'ViewTrail')
Run script build phase '[CP-User] Generate app.config for prebuilt Constants.manifest' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'EXConstants' from project 'Pods')
› 12 error(s), and 3 warning(s)
CommandError: Failed to build iOS project. "xcodebuild" exited with error code 65.
Источник: https://stackoverflow.com/questions/781 ... -with-erro