Xcode 9 “could not build module ‘Foundation’”

后端 未结 4 551
轮回少年
轮回少年 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: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.

提交回复
热议问题