Xcode 7.3 缺少私有框架

Xcode 7.3 missing Private Frameworks

我最近将 Xcode 升级到了 7.3 版。当我编译现有项目时,我收到此错误消息:

directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/System/Library/PrivateFrameworks'

根据 this post,私有框架已从 Xcode 7.3 中移除。 关于潜在解决方案有什么建议吗?

根据Xcode 7.3 release notes:

The Apple private frameworks have been removed from the iOS, watchOS, and tvOS SDKs. If your application fails to link, make sure that you are not using any private frameworks. The use of private frameworks is an unsupported configuration and applications that use non-public APIs will be rejected by the App Store - see App Store Guideline 2.5. (22330301)

您有两个选择:

  1. 删除您对这些私有框架的依赖。
  2. 从以前版本的 Xcode 和 link 中复制私有框架。无法保证它们将继续在 运行 iOS 9.3 及更高版本的设备上工作。