1
+ name : 🚀 Build iOS App (sem assinatura paga)
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ pull_request :
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : macos-latest # Usando o runner macOS para suportar Xcode e iOS
11
+
12
+ permissions :
13
+ contents : read
14
+ packages : write
15
+
16
+ steps :
17
+ - name : 📥 Checkout Repository
18
+ uses : actions/checkout@v4
19
+
20
+ - name : 🛠️ Set up Node.js
21
+ uses : actions/setup-node@v4
22
+ with :
23
+ node-version : ' 18'
24
+
25
+ - name : 📦 Install Dependencies
26
+ run : npm install
27
+
28
+ - name : 🏗️ Build files
29
+ run : npm run build
30
+
31
+ - name : ☕ Set up Xcode
32
+ run : sudo xcode-select --switch /Applications/Xcode_14.3.app # Atualize com a versão correta do Xcode
33
+
34
+ - name : 🏗️ Sync Capacitor iOS
35
+ run : |
36
+ npx cap sync ios
37
+ cd ios
38
+ pod install
39
+
40
+ - name : 🏗️ Build iOS App with Xcode
41
+ run : |
42
+ xcodebuild clean build \
43
+ -workspace YourApp.xcworkspace \
44
+ -scheme YourAppScheme \
45
+ -configuration Release \
46
+ -sdk iphoneos \
47
+ -destination 'generic/platform=iOS' \
48
+ CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
49
+
50
+ - name : 🏗️ Archive App (sem assinatura)
51
+ run : |
52
+ xcodebuild clean archive \
53
+ -workspace YourApp.xcworkspace \
54
+ -scheme YourAppScheme \
55
+ -configuration Release \
56
+ -archivePath $PWD/build/YourApp.xcarchive \
57
+ CODE_SIGN_IDENTITY="" \
58
+ CODE_SIGNING_REQUIRED=NO
59
+
60
+ - name : Export IPA (sem assinatura)
61
+ run : |
62
+ xcodebuild -exportArchive \
63
+ -archivePath $PWD/build/YourApp.xcarchive \
64
+ -exportOptionsPlist ios/ExportOptions.plist \
65
+ -exportPath $PWD/build
66
+
67
+ - name : ☁️ Upload IPA
68
+ uses : actions/upload-artifact@v4
69
+ with :
70
+ name : ios
71
+ path : ios/build/YourApp.ipa
0 commit comments