Azure管道:为OSX创建通用构建,并同时使用ARM和Intel支持
我正在尝试构建一个通用应用程序,该应用程序既可以在Mac上都在ARM和Intel上运行。 现在,尽管我可以手动设置-ark
标志,但我在Azure Pipelines上找不到这种可能性。 我通过添加ARCH:“ ARM64”
来尝试此操作,但是触发了x86_64
构建。
- task: Xcode@5
displayName: 'Build App'
inputs:
actions: 'archive'
scheme: 'app'
sdk: '$(sdk)'
configuration: '$(buildConfiguration)'
xcWorkspacePath: '$(xcodeproj)'
xcodeVersion: 'default' # Options: 10, 11, 12, default, specifyPath
signingOption: 'manual'
signingIdentity: '$(CERT)'
teamId: $(TeamID)
args: 'DSTROOT="$(BuildRoot)"'
arch: "arm64"
如何为M1构建?
I am trying to build a universal application that runs both on arm and intel on Mac.
Now while I can set the -arch
flag manually I do not find that possibility on Azure Pipelines.
I tried this by adding arch: "arm64"
but a x86_64
build was triggered.
- task: Xcode@5
displayName: 'Build App'
inputs:
actions: 'archive'
scheme: 'app'
sdk: '$(sdk)'
configuration: '$(buildConfiguration)'
xcWorkspacePath: '$(xcodeproj)'
xcodeVersion: 'default' # Options: 10, 11, 12, default, specifyPath
signingOption: 'manual'
signingIdentity: '$(CERT)'
teamId: $(TeamID)
args: 'DSTROOT="$(BuildRoot)"'
arch: "arm64"
How can I build for M1?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据OP的要求。
您需要将其他参数传递给“ args”参数中的任务:
update :
如果您想要通用构建,情况将会如此:
As requested by OP.
You need to pass the additional arguments to the task in the 'args' parameter:
UPDATE:
If you want a universal build this would be the case: