PrivateKits icon indicating copy to clipboard operation
PrivateKits copied to clipboard

iOS broken issue

Open Kyle-Ye opened this issue 1 year ago • 0 comments

After this commit

The iOS build will fail due to the extra Versions/A on install_name

dyld[22958]: Library not loaded: /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
  Referenced from: <DD42EABE-7924-322E-BDBA-C2A2EE069FEE> /private/var/containers/Bundle/Application/380816E4-E0D9-4E5F-B1AB-A7D4DFCE69F3/Santander.app/Santander
  Reason: tried: '/System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI' (no such file), '/private/preboot/Cryptexes/OS/System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI' (no such file), '/System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI' (no such file, not in dyld cache
image

We may consider using xcframework to use different tbd for different platform to fix the issue.

eg.

  • https://github.com/OpenSwiftUIProject/OpenGraph/blob/58961e8c7fb7528a89dcd77a3a28a950f1791f1f/AG/AttributeGraph.xcframework/ios-arm64-arm64e/AttributeGraph.framework/AttributeGraph.tbd#L5
  • https://github.com/OpenSwiftUIProject/OpenGraph/blob/58961e8c7fb7528a89dcd77a3a28a950f1791f1f/AG/AttributeGraph.xcframework/macos-arm64e-arm64-x86_64/AttributeGraph.framework/AttributeGraph.tbd#L18

Kyle-Ye avatar Sep 02 '24 05:09 Kyle-Ye