Search code examples
iosxamarincommand-lineipaxcodebuild

Build IPA from .APP bundle without xcworkspace


There used to be a way to build an IPA from an .APP bundle using xcrun but Apple, for some reason, has deprecated PackageApplication. I'm left only with xcodebuild, which requires an Xcode workspace file. My .APP wasn't created via xcode. It was made with Visual Studio for Mac with Xamarin. I can make an IPA by exporting an archive from the IDE but what I'm trying to do is build the IPA from the command line and sign it. The signing part is very straightforward but I don't know how to build the IPA without ZIPping it manually, adding in the embedded.mobileprovision, etc.

Is there an alternative to xcbuild PackageApplication that I can use?


Solution

  • I'm trying to do is build the IPA from the command line...

    You can use msbuild to build/package an .ipa

    /Library/Frameworks/Mono.framework/Commands/msbuild \
      AStackOverflowSolution.sln \
      /p:Configuration=Ad-Hoc \
      /p:Platform=iPhone \
      /p:BuildIpa=true
    

    re: Building via the Command Line (On Mac)

    For Windows, include the ServerAddress and ServerUser of your macOS build system

    /p:ServerAddress="192.168.40.40" 
    /p:ServerUser="YourmacRemoteSSHuser" 
    

    re: IPA Support in Xamarin.iOS