Code sign error : bundle format unrecognized, inva

2019-01-08 14:33发布

Im working on an iOS app, Swift language, iOS8, Xcode 6.1. It was running fine on the iPad. Then I added a "Resource" folder reference to the project, after which I am getting the Code sign error.

The Resource folder contains some HTML files. I am not sure how this folder reference is causing this problem. Any help please?

enter image description here

14条回答
够拽才男人
2楼-- · 2019-01-08 15:10

Just in case someone else is having this issue: Make sure you didn't add a Static Framework into the "Embedded Binaries" section, only Dynamic Frameworks are required to be there.

查看更多
爱情/是我丢掉的垃圾
3楼-- · 2019-01-08 15:12

I have the same issue for some hours. But the following helped me.

  1. Delete Derived data
  2. Clean the project

Then running again, worked.

查看更多
做自己的国王
4楼-- · 2019-01-08 15:15

I had similar issue now and it has been actually caused by Fabric's Embed script and resolved by removing a space inside path to project file.

Having a perfectly buildable workspace in project folder called 'app-ios' I have made a copy named 'app-ios 2' and it was not possible to build that. codesign did report bundle format unrecognized, invalid, or unsuitable and respective path was not to the bundle, but ended with /app-ios instead of app-ios 2/DerivedData/...

After renaming the folder to app-ios-2 the workspace is buildable again.

查看更多
虎瘦雄心在
5楼-- · 2019-01-08 15:16

Addition to accepted answer I thought I should add this-

For me I am getting this error because Xcode-8 is actually using Test Target while running app on device. So if its the same then follow these steps:

Go to Edit Scheme in xcode -> In Build Target -> Remove MyProject.xctest completely or uncheck all the boxes of MyProject.xctest Analyze , Test etc..

Clean your project and then Run on the device.

PS: Answer is from this Link

查看更多
手持菜刀,她持情操
6楼-- · 2019-01-08 15:17

Problem started after upgrading to Xcode 8.1. My project utilizes CocoaPods. I had to delete the ./Pods dir and run pod install and pod update (which updated Flurry-iOS-SDK to 7.8.1). Why? Because reasons.

查看更多
小情绪 Triste *
7楼-- · 2019-01-08 15:20

solved here

  • make sure all frameworks used added to Embed Frameworks section in in build phases
  • keep copy only when installing CHECKED on same section

good luck

查看更多
登录 后发表回答