airbuild-xcode
AirBuild बिल्ड स्क्रिप्ट के भीतर xcodebuild install, archive या test चलाएँ, configuration, destination, साइनिंग और कैश के लिए AirBuild के डिफ़ॉल्ट के साथ।
airbuild-xcode xcodebuild को एक बार, एक action के साथ बुलाता है, और जो आपने नहीं दिया उसके लिए AirBuild के डिफ़ॉल्ट जोड़ता है। यह केवल उन स्क्रिप्ट के भीतर मौजूद है जिन्हें runbuild, runtest और runmacos चलाते हैं (उनके द्वारा बुलाई गई स्क्रिप्ट सहित), Cloud macOS बिल्डर पर या Mac टीम के Mac पर। यह कहीं और इंस्टॉल नहीं है, और Linux बिल्डर पर नहीं है।
install, archive, test और -showBuildSettings के लिए xcodebuild की जगह इसका उपयोग करें। Xcode के किसी दूसरे काम के लिए सीधे xcodebuild बुलाएँ।
सिनॉप्सिस
airbuild-xcode install|archive|test|-showBuildSettings [xcodebuild options and build settings]
airbuild-xcode --helpaction सबसे पहले आना चाहिए। बाकी हर आर्ग्युमेंट बिना बदले xcodebuild को दिया जाता है, और airbuild-xcode xcodebuild के एग्ज़िट कोड से बाहर निकलता है।
Actions
| Action | किसलिए | कैश |
|---|---|---|
install |
रोज़ का बिल्ड: xcodebuild install स्कीम के Archive टारगेट को DSTROOT में, क्रमिक रूप से बिल्ड करता है। इसे build.script में रखें। |
Cloud बिल्ड में रन का पहला install प्रोजेक्ट का DerivedData वापस लाता है। |
archive |
वह आर्काइव जिससे साइन किया हुआ .ipa या बिना साइन का डिवाइस पैकेज बनता है। इसे release.script में रखें। |
कोई नहीं: आर्काइव हर रन में नए सिरे से शुरू होता है। |
test |
टेस्ट चलाएँ। | Cloud बिल्ड में रन का पहला test प्रोजेक्ट का DerivedData वापस लाता है (install वाली से अलग कॉपी)। |
-showBuildSettings |
बिल्ड सेटिंग उन्हीं डिफ़ॉल्ट के साथ प्रिंट करें जो बिल्ड को मिलते। | — |
साइन किए हुए और डिवाइस बिल्ड install अस्वीकार करते हैं: वे आर्काइव एक्सपोर्ट करते हैं, इसलिए release: रेसिपी चलाते हैं।
डिफ़ॉल्ट
install, archive और -showBuildSettings AIRBUILD_SIGN (डिफ़ॉल्ट 0) का पालन करते हैं, जिसे runbuild सेट करता है:
| बिल्ड | Configuration | Destination | साइनिंग |
|---|---|---|---|
सामान्य (AIRBUILD_SIGN=0) |
Debug |
generic/platform=iOS Simulator |
CODE_SIGN_IDENTITY=-; प्रोजेक्ट की बाकी साइनिंग सेटिंग बनी रहती हैं |
डिवाइस पैकेज (AIRBUILD_SIGN=0, AIRBUILD_DEVICE=1): runbuild --unsigned या managed signing के बिना Install on Device |
Release |
generic/platform=iOS |
प्रोजेक्ट के entitlements के साथ ad-hoc साइन किया हुआ, कोई टीम या प्रोफ़ाइल नहीं। Simulator वाले -destination और -sdk मान हटा दिए जाते हैं। |
साइन किया हुआ (AIRBUILD_SIGN=1): runbuild --sign |
Release |
generic/platform=iOS |
AirBuild द्वारा तैयार managed signing |
test डिफ़ॉल्ट रूप से उस सबसे नए iOS रनटाइम पर iPhone सिम्युलेटर लेता है जिसमें सामान्य (फ़ोल्डेबल नहीं) iPhone हो, पहले से बूट हुए को प्राथमिकता देते हुए, साथ में CODE_SIGN_IDENTITY=- और -collect-test-diagnostics never। यह सिम्युलेटर नहीं बनाता।
आप क्या बदल सकते हैं
- स्पष्ट रूप से दिया गया
-configuration,-destination(टेस्ट के लिए एक से ज़्यादा), और सामान्य बिल्ड व टेस्ट के लिएCODE_SIGN_IDENTITY=…डिफ़ॉल्ट की जगह लेते हैं। -collect-test-diagnostics on-failuretestके लिए सिम्युलेटर diagnostics फिर से चालू करता है।- कमांड लाइन पर
ARCHS,COMPILATION_CACHE_*,SWIFT_ENABLE_PREFIX_MAPPINGऔरCLANG_ENABLE_PREFIX_MAPPINGबिल्डर की प्लेटफ़ॉर्म सेटिंग पर भारी पड़ते हैं। बिल्डर पर सिम्युलेटर और macOS बिल्ड केवल arm64 होते हैं, जब तक आपARCHSन दें। - Managed signing प्रोजेक्ट,
-xcconfigऔर कमांड लाइन की इन साइनिंग सेटिंग को बदल देता है:CODE_SIGNING_ALLOWED,CODE_SIGNING_REQUIRED,CODE_SIGN_IDENTITY,CODE_SIGN_STYLE,DEVELOPMENT_TEAM,PROVISIONING_PROFILE,PROVISIONING_PROFILE_SPECIFIERऔरOTHER_CODE_SIGN_FLAGS।CODE_SIGN_ENTITLEMENTSबना रहता है।
वर्शन नंबर
कोई डिवाइस या managed-signing आर्काइव जिसे किसी व्यक्ति ने AirBuild ऐप से शुरू किया, प्रोजेक्ट के न्यूनतम वर्शन तक बढ़ा दिया जाता है: MARKETING_VERSION और CURRENT_PROJECT_VERSION केवल वहीं बदले जाते हैं जहाँ सोर्स में कम मान है। एजेंट द्वारा शुरू किए गए बिल्ड में ऐसा कभी नहीं होता: बिल्ड नंबर प्रोजेक्ट में खुद सेट करें।
आउटपुट
xcodebuild चलाने से पहले airbuild-xcode standard error पर बताता है कि उसने क्या चुना:
[airbuild-xcode] sign=0; configuration=Debug (default); destination=generic/platform=iOS\ Simulator (default).
[airbuild-xcode] CODE_SIGN_IDENTITY=default (-); project signing settings are preserved.[airbuild-xcode] default test device: iPhone 17 (iOS 26.1).
airbuild-xcode: skipping simulator diagnostics collection (simctl diagnose waits 600 s on Xcode 27); pass -collect-test-diagnostics on-failure to collect them.
[airbuild-xcode] action=test; destination=id=<UDID> (default); CODE_SIGN_IDENTITY=default (-).दूसरी लाइनें जो आपको दिख सकती हैं:
| लाइन | अर्थ |
|---|---|
[airbuild-xcode] archive starts over every run and keeps no cache; … |
सामान्य बिल्ड आर्काइव कर रहा है। क्रमिक बिल्ड के लिए build: में install उपयोग करें और archive को release: में रखें। runbuild इसे अपने नतीजे के पास चेतावनी के रूप में दोहराता है। |
[airbuild-xcode] device build: dropped -destination … |
डिवाइस बिल्ड से सिम्युलेटर destination या SDK हटाया गया। |
[airbuild-xcode] device build: ad-hoc signed, no team or profile; CODE_SIGN_ENTITLEMENTS is preserved. |
डिवाइस पैकेज बिल्ड। |
[airbuild-xcode] Managed signing overrides via XCODE_XCCONFIG_FILE: … |
साइन किया हुआ बिल्ड। |
[airbuild-xcode] command-line ARCHS=… kept over the platform build settings. |
आपकी सेटिंग बिल्डर की सेटिंग पर भारी पड़ी। |
[airbuild-xcode] version floor: raised … / nothing raised. |
ऐप से शुरू हुए बिल्ड के लिए न्यूनतम वर्शन वाला चरण। |
एग्ज़िट कोड और त्रुटियाँ
airbuild-xcode xcodebuild के एग्ज़िट कोड से बाहर निकलता है। यह xcodebuild चलाने से पहले 64 के साथ रुक जाता है जब:
| संदेश | क्या करें |
|---|---|
airbuild-xcode: start with install, archive, test or -showBuildSettings; use xcodebuild directly for other operations. |
action पहले रखें, या xcodebuild बुलाएँ। |
airbuild-xcode: use one leading action; run other Xcode operations separately. |
-list, -version, -show…, -exportArchive, -resolvePackageDependencies जैसे विकल्प हटाएँ; उन्हें xcodebuild से चलाएँ। (-showBuildTimingSummary की अनुमति है।) |
airbuild-xcode: -configuration requires a value. (या -destination) |
मान दें। |
airbuild-xcode: a signed or device build exports an archive; put airbuild-xcode archive in the release: recipe of airbuild.yaml … |
airbuild-xcode archive चलाने वाली release: रेसिपी जोड़ें। |
airbuild-xcode: no available iOS simulator could be selected. Install an iOS simulator runtime and device in Xcode, or pass -destination explicitly. |
-destination दें, या सिम्युलेटर रनटाइम इंस्टॉल करें। |
airbuild-xcode: AIRBUILD_SIGN must be 0 or 1. Start managed signing through AirBuild. |
AIRBUILD_SIGN खुद सेट न करें; runbuild --sign का उपयोग करें। |
airbuild-xcode: signing preparation is incomplete. Start signing through AirBuild again. |
runbuild --sign फिर से चलाएँ। |
उदाहरण
# build.script: the everyday, incremental build
airbuild-xcode install -workspace App.xcworkspace -scheme App \
DSTROOT="$PWD/.airbuild/artifacts/install"# release.script: the archive for --sign and --unsigned
rm -rf .airbuild/artifacts/App.xcarchive
airbuild-xcode archive -workspace App.xcworkspace -scheme App \
-archivePath .airbuild/artifacts/App.xcarchive# A test entry, with runtest's --additional-options
airbuild-xcode test -workspace App.xcworkspace -scheme App \
-resultBundlePath .airbuild/artifacts/Tests.xcresult $additional_options