Xcode 9 “could not build module ‘Foundation’”

后端 未结 4 550
轮回少年
轮回少年 2021-01-13 02:03

When I archive an iPhone project, it returns a failure:

Could not build module \"Foundation\".

However, when I debug on the iPho

相关标签:
4条回答
  • 2021-01-13 02:09

    Set to YES target's Allow Non-modular Includes in Framework Modules in Build Settings.

    0 讨论(0)
  • 2021-01-13 02:09

    what you could try is :

    1. Remove your pod.lock file
    2. Remove your node_modules
    3. yarn install in root dir
    4. cd ios
    5. pod install
    6. clean build folder
    7. build
    0 讨论(0)
  • 2021-01-13 02:35

    This happened to me after trying to build a third party library. It made a symbolic link in the iPhoneOS.sdk/usr/include to a non-existent header file in iPhoneSimulator.sdk/usr/include.

    After deleting the bad symbolic link, Xcode started building correctly again.

    0 讨论(0)
  • 2021-01-13 02:36

    Only reinstalling Xcode worked for me.

    0 讨论(0)
提交回复
热议问题