3

I am trying to install my AR app onto my device. If I build it onto the simulator it installs but obviously I can't test it as its not possible to run AR on simulator.

The problem is that when I try to run it on my device I get this error

error: Failed with exit code 1

The error above this is

Codesigning /Users/myName/Library/Developer/Xcode/DerivedData/ARanalytix-efmsytiskdgeajgnizwosccslwsj/Build/Products/Debug-iphoneos/ARanalytix.app/Frameworks/libswiftQuartzCore.dylib /usr/bin/codesign --force --sign 239D4B0E67A04154536E45B1893911C2673A85F5 --verbose /Users/samosborne/Library/Developer/Xcode/DerivedData/ARanalytix-efmsytiskdgeajgnizwosccslwsj/Build/Products/Debug-iphoneos/ARanalytix.app/Frameworks/libswiftQuartzCore.dylib /Users/samosborne/Library/Developer/Xcode/DerivedData/ARanalytix-efmsytiskdgeajgnizwosccslwsj/Build/Products/Debug-iphoneos/ARanalytix.app/Frameworks/libswiftQuartzCore.dylib: errSecInternalComponent

I have tried cleaning my project, downloading certificates again, and also followed the steps from here but cant get it to work.

Any help would be great as I am out of ideas. Thank you in advance.

spoax
  • 471
  • 9
  • 29
  • Looks like a similar question was asked here: https://stackoverflow.com/questions/24023639/xcode-command-usr-bin-codesign-failed-with-exit-code-1-errsecinternalcomponen – totiDev Oct 19 '18 at 13:06
  • @totiG I had a look at this feed and tried unlocking my keychain and allowed access on my certificates but that doesn't seem to solve anything – spoax Oct 19 '18 at 13:34
  • you can make a fat library , you can see this link : https://stackoverflow.com/a/54977145/3992606 – mohsen Mar 04 '19 at 05:31

3 Answers3

2

I tried restarting my Mac and also deleted the certificates from my keychain. I then changed my bundle identifier name and it all seemed to work. Thank you for your help!

spoax
  • 471
  • 9
  • 29
2

There are couple of reasons why it doesn't run.

1) You need a download a develop provisioning profile, if you are using a production certificate it will not run.

2) Be sure from Apple portal to include you device UDID and download a new development provisioning profile including your device.

3) From the project plist be sure to select the correct provisioning profile.

Raul Mantilla
  • 334
  • 1
  • 5
0

Did you Restart Mac and iOS Device. Hope this will work

user1376400
  • 614
  • 1
  • 4
  • 8