Xcode 11.3:框架嵌入/签名问题

问题描述 投票:0回答:1

升级到Xcode 11.3后,我无法再嵌入框架。

为了调查这种情况,我创建了一个新的单视图项目,并在模拟器下执行了该项目。然后,我在Targets / General / Framework,Libraries and Embedded Content中添加了一个标准框架,即CoreLocation.framework。有3个选项:不嵌入,嵌入和签名,不签名嵌入:enter image description here问题:

如果我选择没有签名的嵌入,则将构建应用程序,但会出现运行时错误

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  

我很惊讶签名身份为“-”。因此,我查找了项目构建设置。他们是:enter image description here在这里,一切对我来说都不错。

我的问题是:

我的设置有什么问题?

PS:我查过this similar post,但没有答案。

xcode embed signing ios-frameworks xcode11.3
1个回答
0
投票

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

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

© www.soinside.com 2019 - 2024. All rights reserved.