升级到 Xcode 11.3 后,我无法再嵌入框架。
为了调查这种情况,我创建了一个新的单视图项目,并在模拟器下执行它。
然后我在Targets / General / Frameworks, Libraries and Embedded Content中添加了一个标准框架,即CoreLocation.framework
.
有 3 个选项:不嵌入、嵌入并签名、不签名嵌入:问题:
如果我选择Embed without Signing,应用程序会构建,但我会收到运行时错误
This app could not be installed at this time. …
Failed to load Info.plist from bundle …
CoreLocation.framework; Extra info about plist: ACL=<not found>
我假设我必须在新的 Xcode 版本中签署框架,所以这可能没问题。
但是,如果我选择Embed & Sign,应用程序不会因为错误而构建
…
Signing Identity: "-"
…
CoreLocation.framework: bundle format unrecognized, invalid, or unsuitable
我很惊讶签名身份是“-”。因此,我查找了项目构建设置。它们是:
在这里,我觉得一切都很好。
我的问题是:
我的设置有什么问题?
PS:我看过这个类似的帖子,但没有答案。