【问题标题】:Xcode 11.3: Framework embeding / signing problemXcode 11.3:框架嵌入/签名问题
【发布时间】: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


    【解决方案1】:

    我的一个朋友找到了解决方案:
    在 Xcode 版本 11.3 (11C29) 中,线程清理程序不再起作用,请参阅 here
    解决方法是禁用它。

    另外一点是不再需要嵌入标准框架。因此在上面的测试项目中,不需要嵌入CoreLocation,可以删除。

    【讨论】:

      猜你喜欢
      • 2023-03-29
      • 1970-01-01
      • 1970-01-01
      • 2015-06-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多