@@ -18,27 +18,38 @@ jobs:
1818
1919 - name : Create App Project
2020 run : |
21+ # 1. Create the project and add iOS platform
2122 cordova create build-folder com.yourname.gtatool GTATool
2223 cd build-folder
2324 cordova platform add ios
25+
26+ # 2. Put your HTML code into the app
2427 cp ../index.html www/index.html
25- # This prepares the Xcode project
2628 cordova prepare ios
2729
2830 - name : Build and Package
2931 run : |
3032 cd build-folder/platforms/ios
31- # 1. Build the .app folder
32- xcodebuild -project GTATool.xcodeproj -scheme GTATool -configuration Debug -sdk iphoneos -allowProvisioningUpdates CODE_SIGNING_ALLOWED=NO
3333
34- # 2. Create the Payload folder (Required for IPA structure)
34+ # Find the .xcodeproj file automatically
35+ PROJ_NAME=$(ls -d *.xcodeproj | head -n 1)
36+ SCHEME_NAME=$(basename "$PROJ_NAME" .xcodeproj)
37+
38+ echo "Found Project: $PROJ_NAME"
39+ echo "Using Scheme: $SCHEME_NAME"
40+
41+ # 1. Build the .app folder (Unsigned)
42+ xcodebuild -project "$PROJ_NAME" -scheme "$SCHEME_NAME" -configuration Debug -sdk iphoneos CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO
43+
44+ # 2. Create the Payload structure
3545 mkdir -p Payload
3646
37- # 3. Find the built .app and move it into Payload
38- APP_PATH=$(find build -name "*.app" | head -n 1)
39- cp -r "$APP_PATH" Payload/
47+ # 3. Find the built .app and copy it
48+ # Path is usually: build/Debug-iphoneos/GTATool.app
49+ APP_FILE=$(find . -name "*.app" -type d | grep "Debug-iphoneos" | head -n 1)
50+ cp -r "$APP_FILE" Payload/
4051
41- # 4. Zip it into a .ipa
52+ # 4. Zip it into the final IPA
4253 zip -r GTATool-Unsigned.ipa Payload
4354
4455 - name : Upload IPA Artifact
0 commit comments