【发布时间】:2023-03-25 12:55:01
【问题描述】:
升级到 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 版本中签署框架,所以这可能没问题。
但是,如果我选择 嵌入和签名,应用程序不会因为错误而构建
…
Signing Identity: "-"
…
CoreLocation.framework: bundle format unrecognized, invalid, or unsuitable
我很惊讶签名身份是“-”。因此,我查找了项目构建设置。他们是: 在这里,对我来说一切都很好。
我的问题是:
我的设置有什么问题?
PS:我查了this similar post,但没有答案。
【问题讨论】:
标签: xcode embed signing ios-frameworks xcode11.3