skip to Main Content

I am getting above error with following configuration:

  • Mackbook Pro [Apple M1 Pro] [Sonoma 14.1]
  • Xcode 15.2
  • Device iPhone 15 Pro [17.3.1]
  • react [18.2.0]
  • react-native [0.73.4]
  • aws-amplify [6.0.17]
  • npm [10.5.0]
  • node [21.7.1]
  • gem [3.5.6]
  • bundler [2.5.6]

to setup my environment I followed this link https://reactnative.dev/docs/environment-setup?package-manager=npm&platform=ios

When I do npm run ios, I am able to build app on simulator and device.
Then I followed this link https://reactnative.dev/docs/running-on-device
to build App from xcode. then I get following error
Compile app_vers.c(arm64) 0.1 seconds
‘Debug-iphoneos/AmplifyRTNCore/AmplifyRTNCore.modulemap’ not found

I have tried following:

  1. Deleting node_modules and re- running npm i > cd ios > bundle exec pod install > cd .. > npx pod-install.
  2. Tried with rosetta [VSCode and terminal] couldn’t do for xCode
  3. Updated min_ios_version_supported to 11.0 and 13.0
  4. tried Deleting ~/Library/Developer/Xcode/DerivedData
    And various other solutions available online

2

Answers


  1. Chosen as BEST ANSWER

    My issue resolved, I was not starting react native server.


    • Could you check if your build problems are resolved by modifying your Podfile to delete the following lines?

      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
      config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = "arm64"
      
    • Change values in App Target > Build Settings > Architectures > Excluded Architectures to "arm64" it worked!

    Screenshot for ref

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search