从没有 xcworkspace 的 .APP 包构建 IPA

Build IPA from .APP bundle without xcworkspace

曾经有一种方法可以使用 xcrun 从 .APP 包构建 IPA,但 Apple 出于某种原因弃用了 PackageApplication。我只剩下 xcodebuild,它需要一个 Xcode 工作区文件。我的 .APP 不是通过 xcode 创建的。它是用 Visual Studio for Mac 和 Xamarin 制作的。我可以通过从 IDE 导出存档来制作 IPA,但我想做的是从命令行构建 IPA 并对其进行签名。签名部分非常简单,但我不知道如何在不手动压缩 IPA、添加 embedded.mobileprovision 等的情况下构建 IPA

我可以使用 xcbuild PackageApplication 的替代方案吗?

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

您可以使用 msbuild 到 build/package 和 .ipa

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

回复:Building via the Command Line (On Mac)

对于 Windows,包括 macOS 构建系统的 ServerAddressServerUser

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

回复:IPA Support in Xamarin.iOS