yarn
yarn start
cd ios
pod install
# project.pbxproj
# ...
- "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
+ "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
# ...
- "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
+ "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
# ...
- Set Xcode 13 to open with Rosetta
- Open workspace
- Clean Build Folder
- Set iOS Simulator to iPhone 12
- Build
- Run in Xcode
Or Run with React Native CLI
yarn ios
Resolves
Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening <App>.xcworkspace.
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace <App>.xcworkspace -configuration Debug -scheme <App> -destination id=C3FF229E-87F8-4DAB-B0E6-1642DB821973
Build target <App>Tests of project <App> with configuration Debug
./ios/<App>.xcodeproj: error: The linked library 'libPods-<App>-<App>Tests.a' is missing one or more architectures required by this target: x86_64. (in target '<App>Tests' from project '<App>')
Build target <App> of project <App> with configuration Debug
./ios/<App>.xcodeproj: error: The linked library 'libPods-<App>.a' is missing one or more architectures required by this target: x86_64. (in target '<App>' from project '<App>')
Xcode 12.5 troubleshooting guide (RN 0.61/0.62/0.63/0.64)Apple Silicon (M1) troubleshooting guide (RN 0.64/0.65)
- Open Android Studio - Preview release - Canary build
- Clean Project
- Open Project
- Make Project
Open Initial Preview v3: Google APIs System Image- Open e.g.
Pixel_3a_API_31_arm64-v8a
yarn android
# metro.config.js
module.exports = {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
- inlineRequires: true
+ inlineRequires: false
}
})
}
}
# https://github.com/facebook/hermes/issues/135
# https://github.com/facebook/react-native/issues/31969
yarn storybook
yarn <android/ios>
yarn server
brew install deno
yarn deno