File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,19 +57,24 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
5757
5858elif [[ " $OSTYPE " == " darwin" * ]]; then
5959 # macOS - Create IPA from .app bundle (unsigned builds don't create IPA automatically)
60- APP_PATH=" build/ios/Release-iphoneos/Runner.app"
6160 IPA_PATH=" build/ios/ipa/lam7a.ipa"
6261
6362 # Check if IPA already exists
6463 if [ ! -f " $IPA_PATH " ]; then
6564 echo " 📦 IPA not found, creating from .app bundle..."
6665
67- # Check if .app exists
68- if [ ! -d " $APP_PATH " ]; then
69- echo " ❌ .app bundle not found at: ${APP_PATH} "
66+ # Find the .app bundle (name might vary)
67+ APP_PATH=$( find build/ios/Release-iphoneos -name " *.app" -type d | head -n 1)
68+
69+ if [ -z " $APP_PATH " ] || [ ! -d " $APP_PATH " ]; then
70+ echo " ❌ No .app bundle found in build/ios/Release-iphoneos/"
71+ echo " 🔍 Listing contents:"
72+ ls -la build/ios/Release-iphoneos/ || echo " Directory doesn't exist"
7073 exit 1
7174 fi
7275
76+ echo " ✅ Found .app bundle at: ${APP_PATH} "
77+
7378 # Create IPA directory
7479 mkdir -p build/ios/ipa
7580
You can’t perform that action at this time.
0 commit comments