Mac Catalyst Apple Silicon için xcodebuild ile oluşturun

Aug 21 2020

Xcode 12 beta 4 kullanarak Mac Catalyst ile Apple Silicon'ı destekleyen bir çerçeve oluşturmaya çalışıyorum. Proje Xcode'da "Any Mac" hedefi ile iyi bir şekilde inşa ediliyor. Komutu kullanırsam

xcodebuild -project "project.xcodeproj" -configuration "Release" -scheme "MyScheme" -destination "generic/platform=macOS,variant=Mac Catalyst,name=Any Mac"

Hatayı alıyorum

xcodebuild: error: Unable to find a destination matching the provided destination specifier:
        { generic:1, platform:macOS, variant:Mac Catalyst, name:Any Mac }
    Unsupported device specifier option.
    The device “My Mac” does not support the following options: name
    Please supply only supported device specifier options.
...
Ineligible destinations for the "MyScheme" scheme:
        { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
        { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
        { platform:macOS, variant:Mac Catalyst, name:Any Mac }

Hedefin Xcode'da doğru bir şekilde oluşturulduğunda neden uygun değil olarak listelendiğinden veya jenerik etkinleştirildiğinde xcodebuild'in neden "Mac'im" aygıtını kullandığından emin değilim. Xcodebuild ile Apple Silicon üzerinde Mac Catalyst'i nasıl oluşturabilirim?

Yanıtlar

Nick Aug 21 2020 at 22:55
xcodebuild -project "project.xcodeproj" -configuration "Release" -scheme "MyScheme" -destination "generic/platform=macOS,variant=Mac Catalyst,name=Any Mac"

Bu komut artık Xcode 12 beta 5'te çalışıyor.