realm / realm-swift

Realm is a mobile database: a replacement for Core Data & SQLite
https://realm.io
Apache License 2.0
16.34k stars 2.15k forks source link

Code signing issue for MacCatalyst build with 20.0.0 #8682

Open hyouuu opened 2 months ago

hyouuu commented 2 months ago

How frequently does the bug occur?

Always

Description

Using Xcode 16.0 RC with Realm 20.0.0, building iOS works but building macOS with MacCatalyst fails saying code object is not signed at all in RealmSwift

Stacktrace & log output

CodeSign /Users/UserName/Library/Developer/Xcode/DerivedData/AppName-ghkifyxwnjrxsoevsnjmrngqdzfx/Build/Products/Debug-maccatalyst/AppName.app (in target 'AppName' from project 'AppName')
    cd /Users/UserName/AppName

    Signing Identity:     "Apple Development: UserName (someID)"
    Provisioning Profile: "Mac Catalyst Team Provisioning Profile: UserName.AppName"
                          (94cc131e-1fe6-466c-ae39-5c88b9c8743c)

    /usr/bin/codesign --force --sign 671FA29D3E511DCA1B299BE15531E0543D055605 -o runtime --entitlements /Users/UserName/Library/Developer/Xcode/DerivedData/AppName-ghkifyxwnjrxsoevsnjmrngqdzfx/Build/Intermediates.noindex/AppName.build/Debug-maccatalyst/AppName.build/AppName.app.xcent --timestamp\=none --generate-entitlement-der /Users/UserName/Library/Developer/Xcode/DerivedData/AppName-ghkifyxwnjrxsoevsnjmrngqdzfx/Build/Products/Debug-maccatalyst/AppName.app

/Users/UserName/Library/Developer/Xcode/DerivedData/AppName-ghkifyxwnjrxsoevsnjmrngqdzfx/Build/Products/Debug-maccatalyst/AppName.app: replacing existing signature
/Users/UserName/Library/Developer/Xcode/DerivedData/AppName-ghkifyxwnjrxsoevsnjmrngqdzfx/Build/Products/Debug-maccatalyst/AppName.app: code object is not signed at all
In subcomponent: /Users/UserName/Library/Developer/Xcode/DerivedData/AppName-ghkifyxwnjrxsoevsnjmrngqdzfx/Build/Products/Debug-maccatalyst/AppName.app/Contents/Frameworks/RealmSwift.framework
Command CodeSign failed with a nonzero exit code

Can you reproduce the bug?

Always

Reproduction Steps

Build for Mac using MacCatalyst

Version

20.0.0

What Atlas Services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

macOS Sonoma 14.6.1

Build environment

Xcode version: 16.0 RC Dependency manager and version: Using the Carthage xcframework

sync-by-unito[bot] commented 2 months ago

➤ PM Bot commented:

Jira ticket: RCOCOA-2429

Cliff-F commented 1 month ago

Any fixing yet?

Qubitium commented 1 month ago

Bump. This is happening on XCode 16.0 Release versions as well. Please fix.