बिल्ड, रन और इंस्टॉल

अपने Developer ID से sign किया हुआ Mac ऐप attach करें, किसी एजेंट से उसे Apple की notary service को भेजवाएँ, Apple के मना करने पर log पढ़ें, और ticket को फ़ाइल पर staple करें।

अगर आप Mac ऐप खुद बाँटते हैं, उदाहरण के लिए अपनी वेबसाइट से download के रूप में, तो Apple की notary service उसे जाँचती है और एक ticket लौटाती है। एजेंट आपका signed ऐप notary service को भेज सकता है, आपको बता सकता है कि Apple ने क्या कहा, और ticket को फ़ाइल पर staple कर सकता है ताकि वह ऐप के साथ जाए। Notarization क्या जाँचता है और आपको इसकी ज़रूरत कब है, यह Apple Notarizing macOS software before distribution ↗ में बताता है।

शुरू करने से पहले

  • टीम के owner ने Apple Developer account कनेक्ट किया है और एक team चालू की है। एजेंट उसी team से ऐप Apple को भेजता है। देखें अपना Apple Developer अकाउंट कनेक्ट करें।
  • आपका ऐप आपके Developer ID से signed है। ऊपर दिया Apple का पेज बताता है कि notary service को ऐप से और क्या चाहिए।
  • फ़ाइल .zip, .dmg या .pkg है: command यही तीन तरह की फ़ाइलें लेता है। अगर आप .app attach करते हैं, तो AirBuild उसे उसकी zip के रूप में attach करता है (उदाहरण के लिए MyApp.app.zip)। अगर Apple कहे कि signature valid नहीं है, तो ऐप को खुद zip करें जैसा Apple का Customizing the notarization workflow ↗ दिखाता है, या disk image बनाएँ, और उसे attach करें।

इसे Apple को भेजें

  1. प्रोजेक्ट की चैट में किसी मैसेज के साथ फ़ाइल attach करें। देखें एजेंट को फ़ोटो, फ़ाइलें और स्केच भेजें।

  2. पूछें, उदाहरण के लिए:

    अटैच किए गए Mac ऐप को notarize करो, ticket staple करो, और मुझे staple की हुई फ़ाइल भेजो।
  3. एजेंट इसे asc notarization submit --wait से भेजता है। Help कहता है कि command फ़ाइल को Apple पर upload करता है और --wait के साथ Apple के नतीजे का इंतज़ार करता है। अगर वह पहले ही इंतज़ार करना बंद कर दे, तो नीचे timed-out वाला सवाल देखें।

  4. वह आपको Apple का जवाब और submission की ID बताता है। Status Accepted, In Progress, Invalid या Rejected में से एक होता है।

फ़ाइल भेजने से वह बदलती नहीं। जब status Accepted हो, तो एजेंट आगे ticket staple करता है।

अगर Apple इसे accept न करे

जब status Invalid या Rejected हो, तो command “Notarization failed” कहता है और log की ओर इशारा करता है। पूछें:

Apple ने इसे स्वीकार क्यों नहीं किया? मुझे दिखाओ कि notarization log में क्या लिखा है।

एजेंट log को asc notarization log --fetch से पढ़ता है। Help कहता है कि log में “detailed information about the notarization result, including any issues found during the scan.” होती है। एजेंट चैट में उसका सार बता सकता है, या उसे फ़ाइल के रूप में सेव करके (--path) आपको भेज सकता है।

ऐप आपने sign किया है, इसलिए fix आपकी तरफ़ से होगा: log जो माँगे उसके साथ उसे फिर से sign करें, नई फ़ाइल attach करें और फिर से पूछें। Apple आम समस्याएँ और उनके fix Resolving common notarization issues ↗ में बताता है।

Ticket staple करें

Stapling Apple के ticket को आपकी फ़ाइल से जोड़ देता है। Help कहता है कि asc notarization staple उसे जोड़ता है और ठीक बाद उसे जाँचता है। यह फ़ाइल को ही बदलता है, इसलिए सिर्फ़ --confirm के साथ चलता है, और एजेंट पहले आपसे पूछता है।

  • किसे staple किया जा सकता है: notarized app bundle (.app), disk image (.dmg) या signed installer package (.pkg)। .zip को staple नहीं किया जा सकता: help कहता है कि उसके अंदर के item को staple करें और फिर से zip करें। एजेंट यह आपके लिए करता है।
  • यह कहाँ चलता है: help कहता है कि stapling सिर्फ़ Mac पर चलता है, और Apple के stapler को internet की ज़रूरत हो सकती है। local टीम में एजेंट आपके Mac पर काम करते हैं, इसलिए एजेंट वहीं staple करता है। cloud टीम में, यह पेज नहीं जानता कि एजेंट staple कर सकता है या नहीं। अगर वह कहे कि stapler “is supported on macOS only”, तो फ़ाइल को अपने Mac पर खुद staple करें: Apple का Customizing the notarization workflow ↗ तरीका दिखाता है। देखें चुनें कि आपके एजेंट कहाँ चलें।

एजेंट stapled फ़ाइल चैट में वापस भेजता है। उसे दबाकर रखें (Mac पर, उस पर right-click करें) और Save As… चुनें। Mac पर, चैट में किसी .pkg या .dmg पर click करने से वह खुलने के बजाय Finder में दिखती है। देखें एजेंट को फ़ोटो, फ़ाइलें और स्केच भेजें।

बाद में किसी फ़ाइल को जाँचने के लिए पूछें “क्या attach किए गए ऐप पर stapled ticket है?” एजेंट asc notarization validate से जाँचता है, जो फ़ाइल नहीं बदलता और यह भी सिर्फ़ Mac पर चलता है।

बाद में किसी submission की स्थिति देखें

पूछें asc
“मेरा notarization कहाँ तक पहुँचा?” notarization status, submission की ID के साथ।
“मेरे पिछले पाँच notarizations दिखाओ।” notarization list, --limit के साथ।
“पिछले notarization का log दिखाओ।” notarization log, submission की ID के साथ। --fetch के बिना, यह log की सामग्री के बजाय उसका link देता है।

सवाल

क्या एजेंट मेरे Mac ऐप को Developer ID से sign कर सकता है?
नहीं। AirBuild आपकी team के distribution और development certificates रखता है और उनसे TestFlight और App Store builds sign करता है, लेकिन Developer ID से sign नहीं करता। Developer ID certificate बनाने को कहने पर asc certificates create कहता है कि यह type “is a signing certificate, which Airbuild manages”। ऐप को खुद sign करें, फिर उसे attach करें।
एजेंट कहता है कि फ़ाइल type supported नहीं है।
मैसेज है “unsupported file type … (must be .zip, .dmg, or .pkg)”। ऐप को zip करें, या उसे disk image या installer package में रखें, और उसे attach करें।
एजेंट कहता है कि फ़ाइल खाली नहीं होनी चाहिए।
फ़ाइल बिना किसी सामग्री के पहुँची। उसे नए मैसेज में फिर से attach करें।
Notarization का इंतज़ार करते हुए एजेंट का समय खत्म हो गया।
मैसेज “timed out waiting for notarization” से शुरू होता है। फ़ाइल पहले ही upload हो चुकी थी, और Apple उसे जाँचता रहता है। थोड़ी देर बाद पूछें “मेरा notarization कहाँ तक पहुँचा?”
एजेंट कहता है कि zip archives staple नहीं किए जा सकते।
मैसेज है “zip archives cannot be stapled or validated directly; staple the contained item and recreate the archive”। एजेंट से कहें कि zip के अंदर के ऐप को staple करे और फिर से zip करे।
एजेंट कहता है कि stapler सिर्फ़ macOS पर supported है।
Stapling सिर्फ़ Mac पर चलता है। फ़ाइल को अपने Mac पर खुद staple करें (Apple का Customizing the notarization workflow ↗ देखें), या local टीम इस्तेमाल करें, जिसके एजेंट आपके Mac पर काम करते हैं।
एजेंट कहता है कि xcrun उपलब्ध नहीं है।
मैसेज आगे कहता है: “install Xcode and ensure the active developer directory is configured”। local टीम में, Mac पर Xcode इंस्टॉल करें और उसे Xcode ▸ Settings ▸ Locations ▸ Command Line Tools में चुनें। देखें चुनें कि आपके एजेंट कहाँ चलें।
क्या मेरा Developer ID certificate काम करता रहेगा?
पूछें “क्या मेरे किसी Developer ID certificate पर फ़रवरी 2027 की expiry का असर पड़ता है?” एजेंट asc certificates developer-id-check से जाँचता है। उसका help कहता है कि मूल Developer ID Certification Authority के certificates 1 फ़रवरी 2027 को काम करना बंद कर देते हैं, कि उनसे signed .pkg installers अब install नहीं होते, और उन्हें Developer ID Certification Authority (G2) के certificates से बदलें। हर certificate affected, not-affected, likely-affected या unknown के रूप में लौटता है।