I was building fine last week, now I am encountering this issue with any app I try to build to device (simulator is fine). I tried restarting.
CodeSign /Users/ericdolecki/Library/Developer/Xcode/DerivedData/tester-bmpjtoqbqywhazgsoimyxekummee/Build/Products/Debug-iphoneos/tester.app (in target 'tester' from project 'tester')
cd /Users/ericdolecki/Desktop/tester
export CODESIGN_ALLOCATE\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
Signing Identity: "Apple Development: Eric Dolecki (223WWR97Y3)"
Provisioning Profile: "iOS Team Provisioning Profile: *" (69757824-8a3f-4e03-8d1d-7a30f158d094)
/usr/bin/codesign --force --sign B1DD1AA1862DBE2729D94B45C6D1DEECB58A7FD7 --entitlements /Users/ericdolecki/Library/Developer/Xcode/DerivedData/tester-bmpjtoqbqywhazgsoimyxekummee/Build/Intermediates.noindex/tester.build/Debug-iphoneos/tester.build/tester.app.xcent --timestamp\=none /Users/ericdolecki/Library/Developer/Xcode/DerivedData/tester-bmpjtoqbqywhazgsoimyxekummee/Build/Products/Debug-iphoneos/tester.app
Warning: unable to build chain to self-signed root for signer "Apple Development: Eric Dolecki (223WWR97Y3)"
/Users/ericdolecki/Library/Developer/Xcode/DerivedData/tester-bmpjtoqbqywhazgsoimyxekummee/Build/Products/Debug-iphoneos/tester.app: errSecInternalComponent
Command CodeSign failed with a nonzero exit code
How can I fix this?
Post
Replies
Boosts
Views
Activity
So I was running Xcode 12 fine. My company put Cylance on my laptop. I think forgot I had it running and installed Xcode 13 beta. Cylance flagged a few files - DeviceLink stuff. I launched the beta - I got the loading a plug-in error dialog. Okay I thought, just throw it out - my regular Xcode 12 should be fine. I launch it - same dialog. Uh oh... this is my work laptop and I just lost the ability to use Xcode?? I throw out Xcode 12 and get it again from the Mac AppStore. After forever installing, the same thing. I do not know how to fix this. I launched Xcode from the Terminal and here is the output:
2021-06-15 12:41:54.415 Xcode[23284:313303] [MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.IDE.IDEiOSSupportCore (/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin), error = Error Domain=NSCocoaErrorDomain Code=3587 "dlopen_preflight(/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore): Library not loaded: /System/Library/PrivateFrameworks/DeviceLink.framework/Versions/A/DeviceLink
Referenced from: /Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore
Reason: no suitable image found. Did find:
/System/Library/PrivateFrameworks/DeviceLink.framework/Versions/A/DeviceLink: code signing blocked mmap() of '/System/Library/PrivateFrameworks/DeviceLink.framework/Versions/A/DeviceLink'
....
/Library/Apple/System/Library/PrivateFrameworks/DeviceLink.framework/Versions/A/DeviceLink: code signing blocked mmap() of '/Library/Apple/System/Library/PrivateFrameworks/DeviceLink.framework/Versions/A/DeviceLink', NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin, NSLocalizedDescription=The bundle “IDEiOSSupportCore” couldn’t be loaded because it is damaged or missing necessary resources.}}}
Function: BOOL _IDEInitializePlugInManager(IDEInitializationOptions, NSError *__autoreleasing *)
Thread: <NSThread: 0x7fa14c51ce20>{number = 1, name = main}
Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
How can I fix this problem? I have gone into the Resources folder and installed those 4 packages within - restarted - and I still have the same problem.
I have the local AppClip testing working - but some would like to test using TestFlight. Does the server https hosting the JSON file need to match the associated domain URL in the AppClip? I am currently looking for free https hosting for the apple-app-site-association file and wonder if the location of the file needs to match the associated domain or not.