James Crook
2016-12-03 16:53:15 UTC
I'm new to mac, but am able to build on mac, using the instructions here:
https://github.com/audacity/audacity/blob/master/mac/Build.txt
I'm looking for some help with xcodebuild, specifically I want to
1. Build audacity but not create the dmg using xcodebuild
Then I can do some signing on the components.
3. Then create the dmg from the signed app using xcodebuild
Then I can sign the dmg.
I had thought I had signing sorted, using
codesign -s (myInstallerId) -v audacity-macosx-2.1.3.dmg
but that only signs the dmg.
I assumed xcodebuild would do partial incremental builds, but it seems
to be doing the whole lot, so it overwrites the signed components if I
sign them. delete the dmg and
xcodebuild -configuration Release install
Anyone offer some advice as to how to do the partial builds?
--James
----
In more detail
I am on El Capitan.
I installed Xcode 6.4 and used the command line tool xcodebuild.
I think my certificates are OK.
I have signed-up-and-paid apple to be part of 'Apple Developer Program'
and so get a recognised developer Id and I have taken the steps in xcode
accounts to create two code signing identities:
Developer ID Application
Developer ID Installer
My understanding is that these are the two I require for 3rd party (non
Apple Store) downloads. (There are 5 other types of signing identity,
which I do not think are relevant to me....
https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppStoreDistributionTutorial/AddingYourAccounttoXcode/AddingYourAccounttoXcode.html
)
I think I am successfully signing the dmg as
codesign --verify --verbose=2
seems happy.
However, the signing I did does not sign the app (inside the dmg). Nor does:
codesign --deep -s (myInstallerId) -v audacity-macosx-2.1.3.dmg
And --deep is in any case intended for 'emergency use'.
The app itself is not signed.
The 'correct' test seems to be to upload to dropbox and then download
and drag install, and then attempt to run - and I get the usual unsigned
error.
I can see two routes forward:
1) The 'easy route' is to find out what command line options I need to
split xcodebuild into two stages, and sign the intermediate stage, then
run the second part and sign the dmg.
2) The 'alternative route' is to build Audacity with xcode 8.1 gui. This
is supposed to make signing a breeze. I already spent far too much time
trying to find options in the 6.4 gui that don't exist there. I am
hoping I will just need to specify using macosx10.6 sdk to still build
for earlier macs and that the building within xcode gui WITH signing
will be easy...
I thought I'd send this email off whilst waiting for xcode 8.1 to
download. It's taking a while.....
--James.
https://github.com/audacity/audacity/blob/master/mac/Build.txt
I'm looking for some help with xcodebuild, specifically I want to
1. Build audacity but not create the dmg using xcodebuild
Then I can do some signing on the components.
3. Then create the dmg from the signed app using xcodebuild
Then I can sign the dmg.
I had thought I had signing sorted, using
codesign -s (myInstallerId) -v audacity-macosx-2.1.3.dmg
but that only signs the dmg.
I assumed xcodebuild would do partial incremental builds, but it seems
to be doing the whole lot, so it overwrites the signed components if I
sign them. delete the dmg and
xcodebuild -configuration Release install
Anyone offer some advice as to how to do the partial builds?
--James
----
In more detail
I am on El Capitan.
I installed Xcode 6.4 and used the command line tool xcodebuild.
I think my certificates are OK.
I have signed-up-and-paid apple to be part of 'Apple Developer Program'
and so get a recognised developer Id and I have taken the steps in xcode
accounts to create two code signing identities:
Developer ID Application
Developer ID Installer
My understanding is that these are the two I require for 3rd party (non
Apple Store) downloads. (There are 5 other types of signing identity,
which I do not think are relevant to me....
https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppStoreDistributionTutorial/AddingYourAccounttoXcode/AddingYourAccounttoXcode.html
)
I think I am successfully signing the dmg as
codesign --verify --verbose=2
seems happy.
However, the signing I did does not sign the app (inside the dmg). Nor does:
codesign --deep -s (myInstallerId) -v audacity-macosx-2.1.3.dmg
And --deep is in any case intended for 'emergency use'.
The app itself is not signed.
The 'correct' test seems to be to upload to dropbox and then download
and drag install, and then attempt to run - and I get the usual unsigned
error.
I can see two routes forward:
1) The 'easy route' is to find out what command line options I need to
split xcodebuild into two stages, and sign the intermediate stage, then
run the second part and sign the dmg.
2) The 'alternative route' is to build Audacity with xcode 8.1 gui. This
is supposed to make signing a breeze. I already spent far too much time
trying to find options in the 6.4 gui that don't exist there. I am
hoping I will just need to specify using macosx10.6 sdk to still build
for earlier macs and that the building within xcode gui WITH signing
will be easy...
I thought I'd send this email off whilst waiting for xcode 8.1 to
download. It's taking a while.....
--James.