How do I codesign a Swift app via the commandline?

后端 未结 5 1782
误落风尘
误落风尘 2020-12-25 15:01

I am attempting to run an enterprise signed build of my Swift app on a real phone running iOS 7.1.

If I create the enterprise signed app via the Xcode interface, the

5条回答
  •  长情又很酷
    2020-12-25 15:05

    It looks like as of Xcode 6 Beta 6 you need to codesign the Swift libraries manually.

    codesign --force --verbose --sign 'iPhone Distribution: My Company' Foo.app/
    codesign --force --verbose --sign 'iPhone Distribution: My Company' Foo.app/Frameworks/*
    

    I have filed a bug report with Apple and hopefully they will make this happen automatically if you use codesign's --deep option.

提交回复
热议问题