I try to run a simple test. Everything is fine in the simulator, when i run on the device, emerge following error:
我尝试运行一个简单的测试。在模拟器中一切都很好,当我在设备上运行时,出现以下错误:
The Log is "dyld: could not load inserted library '/private/var/mobile/Containers/Data/Application/7EE29748-5E86-4E9B-B8E5-882753654F87/tmp/IDEBundleInjection.framework/IDEBundleInjection' because no suitable image found. Did find: /private/var/mobile/Containers/Data/Application/7EE29748-5E86-4E9B-B8E5-882753654F87/tmp/IDEBundleInjection.framework/IDEBundleInjection: code signature invalid for '/private/var/mobile/Containers/Data/Application/7EE29748-5E86-4E9B-B8E5-882753654F87/tmp/IDEBundleInjection.framework/IDEBundleInjection' "
日志是“dyld:无法加载插入的库”/private/var/mobile/Containers/Data/Application/7EE29748-5E86-4E9B-B8E5-882753654F87/tmp/IDEBundleInjection.framework/IDEBundleInjection',因为找不到合适的图像。 find:/private/var/mobile/Containers/Data/Application/7EE29748-5E86-4E9B-B8E5-882753654F87/tmp/IDEBundleInjection.framework/IDEBundleInjection:代码签名对'/ private / var / mobile / Containers / Data / Application无效/7EE29748-5E86-4E9B-B8E5-882753654F87/tmp/IDEBundleInjection.framework/IDEBundleInjection'“
I tried to make Clean & Build and remove derived data, it didn't help me.
我试图制作Clean&Build并删除派生数据,但它对我没有帮助。
I appreciate any tips or helps
我感谢任何提示或帮助
2 个解决方案
#1
2
This was due to me changing my appleID password. If you sign back in Xcode -> Preferences -> Accounts, this fixes the problem.
这是因为我改变了我的appleID密码。如果您在Xcode - >首选项 - >帐户中重新登录,则可以解决问题。
#2
0
I struggled with this problem for the whole afternoon and finally found my solution. Yes it is about the certificates again.
我整个下午都在努力解决这个问题,最后找到了我的解决方案。是的,这是关于证书再次。
I heard the news that Apple's world developer relations certificate expired but never realized it'll become a problem until now.
我听说苹果公司的世界开发者关系证书已过期,但直到现在才意识到它将成为一个问题。
In my keychain all the developer identifies appeared with the red status as "This certificate was signed by an unknown authority".
在我的钥匙串中,所有开发人员标识都显示为红色状态为“此证书由未知权限签名”。
So the solutions is, go to http://www.apple.com/certificateauthority/ and download "Worldwide Developer Relations - G2 Certificate", import it into your keychain, check the status of your developer identity certificate and if it turns green (valid), the unit testing problem should be fixed.
所以解决方案是,访问http://www.apple.com/certificateauthority/并下载“全球开发人员关系 - G2证书”,将其导入您的钥匙串,检查您的开发者身份证书的状态以及是否变为绿色(有效),单位测试问题应该修复。
#1
2
This was due to me changing my appleID password. If you sign back in Xcode -> Preferences -> Accounts, this fixes the problem.
这是因为我改变了我的appleID密码。如果您在Xcode - >首选项 - >帐户中重新登录,则可以解决问题。
#2
0
I struggled with this problem for the whole afternoon and finally found my solution. Yes it is about the certificates again.
我整个下午都在努力解决这个问题,最后找到了我的解决方案。是的,这是关于证书再次。
I heard the news that Apple's world developer relations certificate expired but never realized it'll become a problem until now.
我听说苹果公司的世界开发者关系证书已过期,但直到现在才意识到它将成为一个问题。
In my keychain all the developer identifies appeared with the red status as "This certificate was signed by an unknown authority".
在我的钥匙串中,所有开发人员标识都显示为红色状态为“此证书由未知权限签名”。
So the solutions is, go to http://www.apple.com/certificateauthority/ and download "Worldwide Developer Relations - G2 Certificate", import it into your keychain, check the status of your developer identity certificate and if it turns green (valid), the unit testing problem should be fixed.
所以解决方案是,访问http://www.apple.com/certificateauthority/并下载“全球开发人员关系 - G2证书”,将其导入您的钥匙串,检查您的开发者身份证书的状态以及是否变为绿色(有效),单位测试问题应该修复。