From 6365b14ece8816140d9e7bb8758547e562915fe9 Mon Sep 17 00:00:00 2001 From: Admin Date: Mon, 9 Mar 2026 18:23:44 +0500 Subject: [PATCH] fix: use update_code_signing_settings to configure provisioning profile --- ios/LibNovel/fastlane/Fastfile | 14 ++++++++++++-- ios/LibNovel/test-build.sh | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 2 deletions(-) create mode 100755 ios/LibNovel/test-build.sh diff --git a/ios/LibNovel/fastlane/Fastfile b/ios/LibNovel/fastlane/Fastfile index dee453d..1b97988 100644 --- a/ios/LibNovel/fastlane/Fastfile +++ b/ios/LibNovel/fastlane/Fastfile @@ -12,15 +12,25 @@ platform :ios do xcodeproj: "LibNovel.xcodeproj" ) - # Build the app with manual code signing + # Update code signing settings to use automatic signing with team + update_code_signing_settings( + use_automatic_signing: false, + path: "LibNovel.xcodeproj", + team_id: "GHZXC6FVMU", + code_sign_identity: "Apple Distribution", + targets: ["LibNovel"], + profile_name: ENV["PROVISIONING_PROFILE_NAME"] || "LibNovel Distribution" + ) + + # Build the app build_app( scheme: "LibNovel", export_method: "app-store", clean: true, configuration: "Release", - xcargs: "CODE_SIGN_STYLE=Manual CODE_SIGN_IDENTITY='Apple Distribution' -allowProvisioningUpdates", export_options: { method: "app-store", + signingStyle: "manual", provisioningProfiles: { "com.kalekber.LibNovel" => ENV["PROVISIONING_PROFILE_NAME"] || "LibNovel Distribution" } diff --git a/ios/LibNovel/test-build.sh b/ios/LibNovel/test-build.sh new file mode 100755 index 0000000..d652822 --- /dev/null +++ b/ios/LibNovel/test-build.sh @@ -0,0 +1,32 @@ +#!/bin/bash +set -e + +# Test script for local iOS build iteration +# Run from ios/LibNovel directory + +echo "=== Generating Xcode project ===" +xcodegen generate --spec project.yml --project . + +echo "" +echo "=== Listing available provisioning profiles ===" +ls -la ~/Library/MobileDevice/Provisioning\ Profiles/ || echo "No profiles found" + +echo "" +echo "=== Listing available signing identities ===" +security find-identity -v -p codesigning + +echo "" +echo "=== Attempting archive build ===" +xcodebuild archive \ + -project LibNovel.xcodeproj \ + -scheme LibNovel \ + -configuration Release \ + -destination 'generic/platform=iOS' \ + -archivePath ./build/LibNovel.xcarchive \ + -allowProvisioningUpdates \ + CODE_SIGN_STYLE=Manual \ + CODE_SIGN_IDENTITY="Apple Distribution" \ + DEVELOPMENT_TEAM="GHZXC6FVMU" + +echo "" +echo "=== Build succeeded! ==="