infinitered / ignite-bowser

Bowser is now re-integrated into Ignite CLI! Head to https://github.com/infinitered/ignite to check it out.
https://infinite.red/ignite
MIT License
615 stars 140 forks source link

Not able to run latest ignite app on macbook with M1 chip #398

Open MadhavNasit opened 3 years ago

MadhavNasit commented 3 years ago

Not able to run app on macbook with m1, works fine on intel mac.

On runnpx react-native run-ios it gives below errors

User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES

note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
/Users/madhav/Documents/xyz/champ-yash/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'react-native-splash-screen' from project 'Pods')
/Users/madhav/Documents/xyz/champ-yash/ios/CHAMP.xcodeproj: error: The linked library 'libPods-CHAMP.a' is missing one or more architectures required by this target: arm64. (in target 'CHAMP' from project 'CHAMP')
/Users/madhav/Documents/xyz/champ-yash/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'boost-for-react-native' from project 'Pods')

objc[2761]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1f93aec10) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1181082b8). One of the two will be used. Which one is undefined.
objc[2761]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1f93aec60) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x118108308). One of the two will be used. Which one is undefined.
** BUILD FAILED **

ignite doctor result are as below

System
  platform           darwin                                              
  arch               arm64                                               
  cpu                8 cores      Apple M1                               
  directory          champ-yash   /Users/madhav/Documents/xyz/champ-yash 

JavaScript (and globally-installed packages)
  node               16.3.0       /opt/homebrew/bin/node 
  npm                7.15.1       /opt/homebrew/bin/npm  
    nf               0.0.3                               
    node-gyp         8.0.0                               
    npm              7.15.1                              
  yarn               1.22.10      /opt/homebrew/bin/yarn 
    ios-deploy       1.11.4                              

Ignite
  ignite-cli         7.0.1        /Users/madhav/.npm/_npx/e31027f3785124a8/node_modules/.bin/ignite      
  ignite src         build        /Users/madhav/.npm/_npx/e31027f3785124a8/node_modules/ignite-cli/build 

Android
  java               1.8.0_275    /usr/bin/java                     
  android home       -            /Users/madhav/Library/Android/sdk 

iOS
  xcode              12.5       
  cocoapods          1.10.1       /usr/local/bin/pod 
trungtruc91 commented 2 years ago

you can try with remove flipper in Pofile