“应用程序没有有效的签名” Xcode 4.3
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12079817/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
"The application does not have a valid signature" Xcode 4.3
提问by Matt Hudson
I'm getting the weirdest error today.
我今天遇到了最奇怪的错误。
"The application does not have a valid signature"
“该应用程序没有有效的签名”
I get this error when I try to run the application from Xcode 4.3 on my device. Also when I archive it shows it as a generic archive instead of a real app.
当我尝试在我的设备上从 Xcode 4.3 运行应用程序时出现此错误。此外,当我存档时,它会将其显示为通用存档而不是真正的应用程序。
Of course I deleted all of the invalid profiles, cleaned my derived data, cleaned my target, and restarted. No luck.
当然我删除了所有无效的配置文件,清理了我的派生数据,清理了我的目标,然后重新启动。没运气。
EDIT:Turns out that I had a folder reference in my app. I removed all of the references to the folders and made them groups and it worked!
编辑:原来我的应用程序中有一个文件夹引用。我删除了对文件夹的所有引用并将它们分组并且它起作用了!
采纳答案by Matt Hudson
Turns out that I had a folder reference in my app. I removed all of the references to the folders and made them groups and it worked!
原来我的应用程序中有一个文件夹引用。我删除了对文件夹的所有引用并将它们分组并且它起作用了!
回答by Andrei
Just throwing this out there, might help someone in the future (and also would be good for my future reference).
只是把它扔在那里,可能会在将来对某人有所帮助(并且对我将来的参考也有好处)。
I have a bigger project with 2 projects within (an API and the main project that is running on the device itself and which uses the API).
我有一个更大的项目,其中包含 2 个项目(一个 API 和在设备本身上运行并使用 API 的主项目)。
I have solved this problem by cleaning both projects and then rebuilding them.
我已经通过清理两个项目然后重建它们来解决这个问题。
回答by Hawk-Eye
Ohhh...Cleaning the Project solved my problem..cheers :)
哦……清理项目解决了我的问题……干杯 :)
回答by zerodog
This saved me: http://www.two-tails.com/2010/01/12/the-application-does-not-have-a-valid-signature/
这救了我:http: //www.two-tails.com/2010/01/12/the-application-does-not-have-a-valid-signature/
Basically you cannot have a folder reference called "resources"! I changed to "rsrc" and magic.
基本上你不能有一个名为“资源”的文件夹引用!我改为“rsrc”和魔法。
回答by robert
You can get a more detailed error message in the device log, which is extremely valuable for debugging this issue.
您可以在设备日志中获得更详细的错误消息,这对于调试此问题非常有价值。
In XCode 7.3: Window -> Devices -> Select your device -> At the bottomthere is an error log with detailed information.
在XCode 7.3 中:窗口 -> 设备 -> 选择您的设备 -> 在底部有一个包含详细信息的错误日志。
For example in my case it outputs something like this:
例如,在我的情况下,它输出如下内容:
Failed to install application at file:///var/mobile/Media/PublicStaging ... : Error Domain=LaunchServicesError Code=0 "(null)" UserInfo={Error=ApplicationVerificationFailed, ErrorDetail=-402620391,
ErrorDescription=Failed to verify code signature of
/private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.iKT2NH/extracted/XYZ.app
/Frameworks/Raygun4iOS.framework : 0xe8008019 (The application does not have a valid signature.)}
So in my case it is somehow caused by the Raygun framework that I have installed.
所以在我的情况下,它是由我安装的 Raygun 框架引起的。
回答by Spiritman110
I struggled with this for a few hours, but it seems that if you have a framework listed under "Embedded Binaries" as well as being imported through a swift bridging header, this error comes up. I am running XCode 8 with iOS 10. I would try removing your framework from the embedded binaries tab under general settings of your XCode projects. Hope this helps out some person in the future!
我为此苦苦挣扎了几个小时,但似乎如果您在“嵌入式二进制文件”下列出了一个框架,并且通过快速桥接头导入,则会出现此错误。我正在使用 iOS 10 运行 XCode 8。我会尝试从 XCode 项目的常规设置下的嵌入式二进制文件选项卡中删除您的框架。希望这可以帮助将来的某些人!
回答by arik
Also, make sure that when you go to Product > Scheme > Edit Scheme the Build Configuration is set to Running.
另外,请确保当您转到 Product > Scheme > Edit Scheme 时,构建配置设置为运行。