Passos:
npm i [email protected]
cd ios/
pod install
# npm run android
› Opening com.rocketseat.igniteshoes://expo-development-client/?url=http%3A%2F%2F192.168.1.4%3A8081 on Pixel_4_API_30
› Logs for your project will appear below. Press Ctrl+C to exit.
Android Bundling complete 2353ms
ERROR TypeError: undefined is not an object (evaluating '_reactNativeOnesignal.OneSignal.initialize')
ERROR Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Registered callable JavaScript modules (n = 11): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient, RCTEventEmitter.
A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
ERROR Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Registered callable JavaScript modules (n = 11): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient, RCTEventEmitter.
A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
# npm run ios
> [email protected] ios
> expo run:ios
› Skipping dev server
› Planning build
› Compiling react-native Pods/RCT-Folly » Unicode.cpp
› Compiling react-native Pods/RCTTypeSafety » RCTConvertHelpers.mm
› Compiling react-native Pods/RCT-Folly » SysUio.cpp
❌ (/Users/cgodoi/Studies/ignite-2022/React Native/igniteshoesapp/ios/Pods/Headers/Private/RCT-Folly/folly/portability/Time.h:52:17)
50 | #define CLOCK_THREAD_CPUTIME_ID 3
51 |
> 52 | typedef uint8_t clockid_t;
| ^ typedef redefinition with different types vs 'enum clockid_t')
53 | extern "C" int clock_gettime(clockid_t clk_id, struct timespec* ts);
54 | extern "C" int clock_getres(clockid_t clk_id, struct timespec* ts);
55 | #endif
› Compiling react-native Pods/RCT-Folly » String.cpp
› Compiling react-native Pods/RCT-Folly » ScopeGuard.cpp
› Compiling react-native Pods/RCT-Folly » SafeAssert.cpp
› Compiling react-native Pods/RCT-Folly » RCT-Folly-dummy.m
› Compiling react-native Pods/RCT-Folly » json.cpp
› Compiling react-native Pods/RCT-Folly » dynamic.cpp
› Compiling react-native Pods/RCT-Folly » NetOps.cpp
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 'igniteshoesapp' from project 'igniteshoesapp')
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 'igniteshoesapp' from project 'igniteshoesapp')
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')
› 1 error(s), and 3 warning(s)
CommandError: Failed to build iOS project. "xcodebuild" exited with error code 65.