Receive message “A signed resource has been added, modified, or deleted” when trying to debug an App on iPhone

前端 未结 26 2071
青春惊慌失措
青春惊慌失措 2020-11-30 03:04

While attempting to debug a build created using the 3.2 SDK on an iPhone device I receive the message \"A signed resource has been added, modified, or deleted.\".

I

相关标签:
26条回答
  • 2020-11-30 03:29

    Xcode 8, reason of the "A signed resource has been added, modified, or deleted." was that target was signed with an enterprise provision profile.

    0 讨论(0)
  • 2020-11-30 03:31

    I found a workaround for the bug.

    If you delete the .app file in build/Debug-iphoneos/ before building for the device, the app gets installed without errors. And there is a simple way to do that before every build.

    Make sure you have selected "Device" in the dropdown overview menu. In XCode go to Project > New target... Then find "Shell Script target" under MacOSX/Other Name it and add it to the current project

    Now, in the left navigation panel, under targets, expand your newly created target and double-click on Run Script. In the window that opens replace "# shell script goes here" with "rm -fr build/Debug-iphoneos/*.app" (without the quotes). Now open your main target preferences and under Direct Dependencies add your newly created target. Build and Go! :)

    0 讨论(0)
  • 2020-11-30 03:31

    Same for me, thought it has something to do with multiple targets etc. because I changed a lot there. But it's highly possible that it's a Bug in the 3.2.2 release since I did not test extensively in this sdk version before the massive target changes in my project.

    0 讨论(0)
  • 2020-11-30 03:33

    This is a very general error message indicating something is wrong during the validation process of the code signature. To find out the specific error, you can go to Xcode->Window->Devices and check your device log.

    In my case, I have following console spew

    Feb 1 18:53:07 iPod-touch installd[40] : 0x1001f8000 -[MICodeSigningVerifier performValidationWithError:]: 192: Failed to verify code signature of : 0xe8008017 (Signed resources have been added, removed, or modified)

    Check on this 3rd party framework again, I found an extra CodeResources file under the framework root. Remove that file fixed the problem.

    0 讨论(0)
  • 2020-11-30 03:34

    We ran into this issues on XCode_6.3.1. We were building a AppleWatch app, with an extension. We do have a bunch of Pods.. After debugging the issue for almost a bunch of hours, what we found was that there was an issue with the way a file was adde to the project..

    It seems like some references to a unused file was sitting in the iPhone App, though it was used in the Watch App.. It turns out that the error XCode was showing was totally useless.

    After removing this file and re adding it back to the project the project started working fine & was able to install to the device. To make it even harder to debug the issues, the debug version was installed without an issue, but was unable to install the norman version..

    Make sure you add your files to the right target and, look at git history and see if there are lingering fragments that are added to the wrong target.

    0 讨论(0)
  • 2020-11-30 03:35

    This error occurs when there is a special character in the Product Name. In my case it was a "?"

    If you change the Product Name it automatically updates the "Bundle Name" and "Bundle Display Name" so it is often the best choice to rename an app.

    If you want to include special characters in the app name you have to manually rename the "Bundle Name" and "Bundle Display Name"

    Bundle Name: This is the actual app bundle name in the file system such as "Awesome App.app". It is generally not visible to the user.

    Bundle Display Name: This is a short name displayed under the app icon on the device. Since the bundle name would be truncated to "Awes…tion" you have the option to have a shorter name which fits better such as "Awesome App". It should be similar to the App Store name (set in iTunes Connect)

    0 讨论(0)
提交回复
热议问题