问题描述
我正在尝试使用 Xcode 12 beta 6 在装有 iOS 13 的 iPhone 上测试我的项目.
I'm trying to test my project on my iPhone with iOS 13, using Xcode 12 beta 6.
应用程序在启动时崩溃,这是日志中的消息:
The app crash on start and this is the message in the log:
dyld:启动,加载依赖库DYLD_LIBRARY_PATH=/usr/lib/system/introspectionDYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/GPUTools.framework/libglInterpose.dylib:/usr/lib/libMTLCapture.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib(lldb)
dyld: launch, loading dependent librariesDYLD_LIBRARY_PATH=/usr/lib/system/introspectionDYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/GPUTools.framework/libglInterpose.dylib:/usr/lib/libMTLCapture.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib(lldb)
有人可以帮助我吗?谢谢
Someone can help me?Thank you
推荐答案
出现这种情况是因为 Xcode 无法使用您应用的签名身份对 SwiftPM 提供的框架进行签名.这是 Xcode 12 中的一个已知问题 (SR-13343).
This occurs because Xcode fails to sign the frameworks that are provided by SwiftPM with your app’s signing identity. It’s a known issue (SR-13343) in Xcode 12.
您可以在第三个框架文件上执行这些步骤来尝试修复:
You can do these steps on third framework file to try fix :
选择:Siging &能力.
select:Siging & Capabilites.
查找:FrameWorks、库和嵌入式内容.
find : FrameWorks, Libraries, and Embedded Content.
改变:.嵌入"来自Do not Embed"的第三个框架嵌入"签到".
change : the. "embed" of the third frameworks from "Do not Embed" to "Embed & Sign".
这篇关于无法在 iOS 13 上运行我的应用程序.对于框架问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!