Post

Replies

Boosts

Views

Activity

Reply to Xcode 12.5 "code signature version is no longer supported"
Found a workaround and described it in this thread. TL;DR Adding the following options to the codesign command will result in a v=20500: -o runtime --runtime-version "16.4.0" So the solution would be adding those options to the OTHER_CODE_SIGN_FLAGS in the Build Settings of your app target, e.g.: -o runtime --runtime-version $DEPLOYMENT_TARGET After this the app successfully installs on a device.
May ’23
Reply to Code signing generated with wrong version
Just stumbled upon this issue when using an XCFramework Swift package and found a solution. To enforce a specific code signing version you need to use two extra command line options: -o, --options flag,... During signing, specifies a set of option flags to be embedded in the code signature. The value takes the form of a comma-separated list of names (with no spaces). Alternatively, a numeric value can be used to directly specify the option mask (CodeDirectory flag word). See OPTION FLAGS below. --runtime-version version During signing, when the runtime OPTION FLAG is set, explicitly specify the hardened runtime version stored in the code signature. If this option is omitted, but the runtime OPTION FLAG is set then the hardened runtime version is omitted for non-Mach-O files and derived from the SDK version of Mach-O files. Adding the following options will result in a v=20500: runtime --runtime-version "16.4.0" After this the app successfully installs on a device. You can add those option to the OTHER_CODE_SIGN_FLAGS in the Build Settings of your app target.
May ’23
Reply to SwiftUI Preview triggers test target build
It is still an issue in the Xcode 14.2 and is very annoying. More to that, the SwiftUI Previews build does not run Swift Package build plugins, making the test target build failing if it relies on those. One has to first build the target for testing to trigger the package plugins, then the previews start working.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’23
Reply to Xcode 12.5 "code signature version is no longer supported"
Found a workaround and described it in this thread. TL;DR Adding the following options to the codesign command will result in a v=20500: -o runtime --runtime-version "16.4.0" So the solution would be adding those options to the OTHER_CODE_SIGN_FLAGS in the Build Settings of your app target, e.g.: -o runtime --runtime-version $DEPLOYMENT_TARGET After this the app successfully installs on a device.
Replies
Boosts
Views
Activity
May ’23
Reply to Code signing generated with wrong version
Just stumbled upon this issue when using an XCFramework Swift package and found a solution. To enforce a specific code signing version you need to use two extra command line options: -o, --options flag,... During signing, specifies a set of option flags to be embedded in the code signature. The value takes the form of a comma-separated list of names (with no spaces). Alternatively, a numeric value can be used to directly specify the option mask (CodeDirectory flag word). See OPTION FLAGS below. --runtime-version version During signing, when the runtime OPTION FLAG is set, explicitly specify the hardened runtime version stored in the code signature. If this option is omitted, but the runtime OPTION FLAG is set then the hardened runtime version is omitted for non-Mach-O files and derived from the SDK version of Mach-O files. Adding the following options will result in a v=20500: runtime --runtime-version "16.4.0" After this the app successfully installs on a device. You can add those option to the OTHER_CODE_SIGN_FLAGS in the Build Settings of your app target.
Replies
Boosts
Views
Activity
May ’23
Reply to SwiftUI Preview triggers test target build
It is still an issue in the Xcode 14.2 and is very annoying. More to that, the SwiftUI Previews build does not run Swift Package build plugins, making the test target build failing if it relies on those. One has to first build the target for testing to trigger the package plugins, then the previews start working.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’23