Fix "mapped file has no Team ID..." in Xcode 11
After applying the preferred project settings in Xcode 11 you might be confronted with the following error while loading a Library at runtime:
dyld: Library not loaded: @rpath/DCOAboutWindow.framework/Versions/A/DCOAboutWindow Referenced from: /Users/username/Library/Developer/Xcode/DerivedData/Pipvid-adwfbkaurzovizgaarwkmugeihce/Build/Products/Debug/Pipvid.app/Contents/MacOS/Pipvid Reason: no suitable image found. Did find: /Users/username/Library/Developer/Xcode/DerivedData/Pipvid-adwfbkaurzovizgaarwkmugeihce/Build/Products/Debug/Pipvid.app/Contents/MacOS/../Frameworks/DCOAboutWindow.framework/Versions/A/DCOAboutWindow: code signature in (/Users/username/Library/Developer/Xcode/DerivedData/Pipvid-adwfbkaurzovizgaarwkmugeihce/Build/Products/Debug/Pipvid.app/Contents/MacOS/../Frameworks/DCOAboutWindow.framework/Versions/A/DCOAboutWindow) not valid for use in process using Library Validation: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)
The issue is caused by a new entry in your
project.pbxproj that specifies the signing identity:
CODE_SIGN_IDENTITY = "-";. It’s set to Sign to Run Locally by default.
Changing Signing Certificate to Development under Signing Capabilities in the project settings resolves the issue. You could also manually update the entry to
CODE_SIGN_IDENTITY = "Apple Development";.
Originally appeared on posts.boy.sh