Codesigning error 1

I have built an app relying on RealmSwift that is fully functional in Simulator. When archiving to create the .ipa file I am getting a code sign error 1 that references errSecInternalComponent on both Realm.framework and RealmSwift. framework.

My signing certificates are all OK so not the source of the problem

Any ideas welcome

@rwest999 hey Richard, Iā€™m not sure what the issue is there but hereā€™s two things that have happened to me in the past:

  • beta versions of Xcode on few occasions had problems signing bundled frameworks
  • if youā€™re including the precompiled frameworks have a look at the ā€œInstallationā€ section here: https://realm.io/docs/swift/latest/ - thereā€™s an extra step to work around an app store issue

Let me know whether either resolves this :+1:t3:

Thanks for the reply. It helped in that I found I needed to update Cocoapods and also update RealmSwift. I was also using the xcodeproj file and not the xcworkspace files which may not have helped.

However, having put all that right I am still getting errors on trying to Archive (/bin/sh failed with exit code 1) and a warning ā€œUnable to build chain to self-signed root for signerā€ that appears to derive from Realm.framework.

It all seems very complicatedšŸ˜©