fix(ci): remove -derivedDataPath and -clonedSourcePackagesDirPath incompatible with -target
Xcode demands -scheme when using -derivedDataPath or -clonedSourcePackagesDirPath. Since we use -target TabataGo, these flags must be removed. Changes: - Removed -derivedDataPath and -clonedSourcePackagesDirPath from build command - Moved SWIFT_ENABLE_EXPLICIT_MODULES=NO to its own line for clarity - Updated Package IPA step to search from repo root (find ..) with explicit TabataGo.app name instead of relying on the old derived data path
This commit is contained in:
@@ -61,16 +61,16 @@ jobs:
|
||||
-destination "generic/platform=iOS" \
|
||||
-configuration Debug \
|
||||
-allowProvisioningUpdates \
|
||||
-derivedDataPath ../build/derived \
|
||||
-clonedSourcePackagesDirPath ../build/spm-cache \
|
||||
-skipPackagePluginValidation \
|
||||
CODE_SIGN_STYLE=Automatic DEVELOPMENT_TEAM=2MJF39L8VY SWIFT_ENABLE_EXPLICIT_MODULES=NO
|
||||
SWIFT_ENABLE_EXPLICIT_MODULES=NO \
|
||||
CODE_SIGN_STYLE=Automatic DEVELOPMENT_TEAM=2MJF39L8VY
|
||||
|
||||
- name: Package IPA
|
||||
run: |
|
||||
cd tabatago-swift
|
||||
mkdir -p Payload
|
||||
cp -R "$(find ../build/derived -name '*.app' -type d | head -1)" Payload/
|
||||
APP=$(find .. -name 'TabataGo.app' -type d | grep -v DerivedData | head -1)
|
||||
cp -R "$APP" Payload/
|
||||
zip -r build/TabataGo.ipa Payload/
|
||||
rm -rf Payload
|
||||
|
||||
|
||||
Reference in New Issue
Block a user