After updating to the latest FMOD distribution (1.05.14), the Xcode codesigning of our project fails. Since I haven’t changed anything else, it seems the two FMOD bundles are not codesigned in Xcode and fail to validate in Xcode. We used to be able to submit this project to the App Store for Testflight purposes. We build from Unity 5 and the game runs fine on all our devices in development builds.
Could this have to do with the latest distribution of FMOD for Unity 5? Can we rule out FMOD? Is there anything we can do to make sure that FMOD is signed properly? And what could be the cause of this sudden change? Or is Unity causing this problem, leaving FMOD unsigned?
This is the Xcode screen that implies that FMOD is not codesigned:
https://dl.dropboxusercontent.com/u/33929678/xcode-signing-fmod.png
Thanks for any help on this issue!
Update:
The error message isn’t informative as it cannot be read (https://dl.dropboxusercontent.com/u/33929678/codesign-error2.png ).
However, these are the build log errors:
2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmod.bundle’>: Error Domain=NSCocoaErrorDomain Code=4 “Item at “/Users/account/Library/Developer/Xcode/Archives/2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmod.bundle” did not contain a “archived-expanded-entitlements.xcent” resource.” UserInfo=0x7ffb72ed7800 {NSLocalizedDescription=Item at “/Users/account/Library/Developer/Xcode/Archives/2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmod.bundle” did not contain a “archived-expanded-entitlements.xcent” resource.}
2015-03-20 09:51:02 +0000 [MT] [OPTIONAL] Didn’t find embedded provisioning profile for <DVTFilePath:0x7ffb754db820:’/Users/account/Library/Developer/Xcode/Archives/2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmod.bundle’>: Error Domain=NSCocoaErrorDomain Code=4 “No file at <DVTFilePath:0x7ffb6e5c63d0:’/Users/account/Library/Developer/Xcode/Archives/2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmod.bundle/Contents/embedded.provisionprofile’>” UserInfo=0x7ffb7545ffe0 {NSLocalizedDescription=No file at <DVTFilePath:0x7ffb6e5c63d0:’/Users/account/Library/Developer/Xcode/Archives/2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmod.bundle/Contents/embedded.provisionprofile’>}
2015-03-20 09:51:02 +0000 [MT] [OPTIONAL] Didn’t find archived user entitlements for <DVTFilePath:0x7ffb75180260:’/Users/account/Library/Developer/Xcode/Archives/2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmodstudio.bundle’>: Error Domain=NSCocoaErrorDomain Code=4 “Item at “/Users/account/Library/Developer/Xcode/Archives/2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmodstudio.bundle” did not contain a “archived-expanded-entitlements.xcent” resource.” UserInfo=0x7ffb7347db20 {NSLocalizedDescription=Item at “/Users/account/Library/Developer/Xcode/Archives/2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmodstudio.bundle” did not contain a “archived-expanded-entitlements.xcent” resource.}
2015-03-20 09:51:02 +0000 [MT] [OPTIONAL] Didn’t find embedded provisioning profile for <DVTFilePath:0x7ffb75180260:’/Users/account/Library/Developer/Xcode/Archives/2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmodstudio.bundle’>: Error Domain=NSCocoaErrorDomain Code=4 “No file at <DVTFilePath:0x7ffb7514a510:’/Users/account/Library/Developer/Xcode/Archives/2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmodstudio.bundle/Contents/embedded.provisionprofile’>” UserInfo=0x7ffb7540e1d0 {NSLocalizedDescription=No file at <DVTFilePath:0x7ffb7514a510:’/Users/account/Library/Developer/Xcode/Archives/2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmodstudio.bundle/Contents/embedded.provisionprofile’>}
Update:
The error message isn’t informative as it cannot be read (https://dl.dropboxusercontent.com/u/33929678/codesign-error2.png ).
However, these are the build log errors:
2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmod.bundle’>: Error Domain=NSCocoaErrorDomain Code=4 “Item at “/Users/account/Library/Developer/Xcode/Archives/2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmod.bundle” did not contain a “archived-expanded-entitlements.xcent” resource.” UserInfo=0x7ffb72ed7800 {NSLocalizedDescription=Item at “/Users/account/Library/Developer/Xcode/Archives/2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmod.bundle” did not contain a “archived-expanded-entitlements.xcent” resource.}
2015-03-20 09:51:02 +0000 [MT] [OPTIONAL] Didn’t find embedded provisioning profile for <DVTFilePath:0x7ffb754db820:‘/Users/account/Library/Developer/Xcode/Archives/2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmod.bundle’>: Error Domain=NSCocoaErrorDomain Code=4 “No file at <DVTFilePath:0x7ffb6e5c63d0:‘/Users/account/Library/Developer/Xcode/Archives/2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmod.bundle/Contents/embedded.provisionprofile’>” UserInfo=0x7ffb7545ffe0 {NSLocalizedDescription=No file at <DVTFilePath:0x7ffb6e5c63d0:‘/Users/account/Library/Developer/Xcode/Archives/2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmod.bundle/Contents/embedded.provisionprofile’>}
2015-03-20 09:51:02 +0000 [MT] [OPTIONAL] Didn’t find archived user entitlements for <DVTFilePath:0x7ffb75180260:‘/Users/account/Library/Developer/Xcode/Archives/2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmodstudio.bundle’>: Error Domain=NSCocoaErrorDomain Code=4 “Item at “/Users/account/Library/Developer/Xcode/Archives/2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmodstudio.bundle” did not contain a “archived-expanded-entitlements.xcent” resource.” UserInfo=0x7ffb7347db20 {NSLocalizedDescription=Item at “/Users/account/Library/Developer/Xcode/Archives/2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmodstudio.bundle” did not contain a “archived-expanded-entitlements.xcent” resource.}
2015-03-20 09:51:02 +0000 [MT] [OPTIONAL] Didn’t find embedded provisioning profile for <DVTFilePath:0x7ffb75180260:‘/Users/account/Library/Developer/Xcode/Archives/2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmodstudio.bundle’>: Error Domain=NSCocoaErrorDomain Code=4 “No file at <DVTFilePath:0x7ffb7514a510:‘/Users/account/Library/Developer/Xcode/Archives/2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmodstudio.bundle/Contents/embedded.provisionprofile’>” UserInfo=0x7ffb7540e1d0 {NSLocalizedDescription=No file at <DVTFilePath:0x7ffb7514a510:‘/Users/account/Library/Developer/Xcode/Archives/2015-03-20/Unity-iPhone 20-03-15 10.50.xcarchive/Products/Applications/OurApp.app/fmodstudio.bundle/Contents/embedded.provisionprofile’>}
Hey Sander, I’ve just encountered the same issue. Found any solutions for this yet? Would be much appreciated
Hi Peter,
No, unfortunately not yet. I installed Unity5 and Xcode 6.2 to a Yosemite machine but the same codesigning error occurs. I’ll post here if I’ve succeeded to build properly.
Best, Sander
Hi Peter,
No, unfortunately not yet. I installed Unity5 and Xcode 6.2 to a Yosemite machine but the same codesigning error occurs. I’ll post here if I’ve succeeded to build properly.
Best, Sander
Yesterday I tried to get it to work, but to no avail. I cannot sign the FMOD bundles in a way XCode appreciates.
That sucks. We can’t be the only ones who use fmod from unity in a xcode project, can’t we?
Jorren
April 1, 2015, 2:49pm
7
If you remove the fmod and fmodstudio bundle from the ‘copy bundle resources’ in the build phases tab, there is no problem anymore.
Which is of course not a solution, but definitely points to fmod as (part of) the cause.
If you remove the fmod and fmodstudio bundle from the ‘copy bundle resources’ in the build phases tab, there is no problem anymore.
Which is of course not a solution, but definitely points to fmod as (part of) the cause.
Yes, now I can upload to the App Store without code signing problems and sound is working.
nick1
April 2, 2015, 4:39am
9
Change the settings for fmod.bundle and fmodstudio.bundle in the Unity inspector window from “Any Platform” to “Standalone”.
Before
and after
2 Likes