fix: use update_code_signing_settings to configure provisioning profile
Some checks failed
CI / Scraper / Lint (pull_request) Successful in 13s
CI / UI / Build (pull_request) Successful in 17s
iOS CI / Test (push) Has been cancelled
iOS CI / Build (push) Has been cancelled
CI / UI / Docker Push (pull_request) Has been skipped
CI / Scraper / Test (pull_request) Successful in 20s
CI / Scraper / Docker Push (pull_request) Has been skipped
iOS CI / Build (pull_request) Has been cancelled
iOS CI / Test (pull_request) Has been cancelled
iOS Release / Release to TestFlight (push) Failing after 1m1s
Some checks failed
CI / Scraper / Lint (pull_request) Successful in 13s
CI / UI / Build (pull_request) Successful in 17s
iOS CI / Test (push) Has been cancelled
iOS CI / Build (push) Has been cancelled
CI / UI / Docker Push (pull_request) Has been skipped
CI / Scraper / Test (pull_request) Successful in 20s
CI / Scraper / Docker Push (pull_request) Has been skipped
iOS CI / Build (pull_request) Has been cancelled
iOS CI / Test (pull_request) Has been cancelled
iOS Release / Release to TestFlight (push) Failing after 1m1s
This commit is contained in:
@@ -12,15 +12,25 @@ platform :ios do
|
|||||||
xcodeproj: "LibNovel.xcodeproj"
|
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(
|
build_app(
|
||||||
scheme: "LibNovel",
|
scheme: "LibNovel",
|
||||||
export_method: "app-store",
|
export_method: "app-store",
|
||||||
clean: true,
|
clean: true,
|
||||||
configuration: "Release",
|
configuration: "Release",
|
||||||
xcargs: "CODE_SIGN_STYLE=Manual CODE_SIGN_IDENTITY='Apple Distribution' -allowProvisioningUpdates",
|
|
||||||
export_options: {
|
export_options: {
|
||||||
method: "app-store",
|
method: "app-store",
|
||||||
|
signingStyle: "manual",
|
||||||
provisioningProfiles: {
|
provisioningProfiles: {
|
||||||
"com.kalekber.LibNovel" => ENV["PROVISIONING_PROFILE_NAME"] || "LibNovel Distribution"
|
"com.kalekber.LibNovel" => ENV["PROVISIONING_PROFILE_NAME"] || "LibNovel Distribution"
|
||||||
}
|
}
|
||||||
|
|||||||
32
ios/LibNovel/test-build.sh
Executable file
32
ios/LibNovel/test-build.sh
Executable file
@@ -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! ==="
|
||||||
Reference in New Issue
Block a user