diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bb21099..3797268 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -265,17 +265,42 @@ jobs: run: dart run flutter_launcher_icons - name: Build iOS (unsigned) - run: flutter build ios --release --no-codesign + run: | + # Build Flutter iOS without codesigning + flutter build ios --release --no-codesign --config-only + + # Use xcodebuild with code signing disabled + cd ios + xcodebuild -workspace Runner.xcworkspace \ + -scheme Runner \ + -configuration Release \ + -sdk iphoneos \ + -destination 'generic/platform=iOS' \ + -archivePath build/Runner.xcarchive \ + archive \ + CODE_SIGNING_ALLOWED=NO \ + CODE_SIGNING_REQUIRED=NO \ + CODE_SIGN_IDENTITY="" \ + DEVELOPMENT_TEAM="" - name: Create IPA run: | VERSION=${{ needs.get-version.outputs.version }} mkdir -p build/ios/ipa - cd build/ios/iphoneos + cd ios/build/Runner.xcarchive/Products/Applications mkdir Payload cp -r Runner.app Payload/ - zip -r ../ipa/SpotiFLAC-${VERSION}-ios-unsigned.ipa Payload + zip -r ../../../../ipa/SpotiFLAC-${VERSION}-ios-unsigned.ipa Payload rm -rf Payload + + - name: Verify IPA created + run: | + ls -la build/ios/ipa/ + VERSION=${{ needs.get-version.outputs.version }} + if [ ! -f "build/ios/ipa/SpotiFLAC-${VERSION}-ios-unsigned.ipa" ]; then + echo "ERROR: IPA not created!" + exit 1 + fi - name: Upload IPA artifact uses: actions/upload-artifact@v4