I am in peril. Can anyone save me. I am desperate!
I am using Xcode Version 14.2 (14C18) to build my 2 dylibs. I had no problems with older versions of Xcode (one and half a year ago). But it's causing code signing problems and Connect fails my submitted binary package complaining I had wrong entitlement on dylibs.
I contact Apple technical support and I got a reply:
Entitlements are only effective on a main executable. When you sign a shared library with entitlement then, at best, the system ignores them. However, in some cases you can run into mysterious problems like this one.
The key problem is that Xcode is autogenerating entitlement file for my dylibs. I have no entitlement files in my projects, I am sure.
codesign -d --ent - libsqlite3s.dylib
Executable=/Users/USERNAME/Library/Developer/Xcode/DerivedData/libsqlite3s-ahztenmeyvsijneqjzdtifjhljlr/Build/Products/Debug/libsqlite3s.dylib
[Dict]
[Key] com.apple.application-identifier
[Value]
[String] TEAMID.net.neolib.libsqlite3s
How can I turn off this 'useful' feature?