Skip to content

Commit 7802cf5

Browse files
committed
fix
1 parent 329f6d9 commit 7802cf5

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

cross-platform/deploy.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,24 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
5757

5858
elif [[ "$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

0 commit comments

Comments
 (0)