Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Cannot build a macOS App with a provisioning profile
Started by theromero Jan 14 2017 07:01 AM

9 replies to this topic
provisioning profile macos osx app

Best Answer theromero , 17 February 2017 - 03:46 AM

FOUND THE ISSUE. It's ridiculous; not sure it's your issue or not.

 

I commented-out the steamworks plugin from our build.settings and rebuilt the macOS version several times with little tweaks each time. Nothing mattered. It still failed the strict codesign process because the steamworks plugin was still being included.

 

I found that after you comment-out the steamworks plugin in build.settings you have to QUIT AND RERUN CORONA SDK.

 

That evidently clears it up and I can make development and distribution builds for macOS now.

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

theromero

[GLOBAL: userInfoPane.html]
theromero
  • Enthusiast

  • 77 posts
  • Enterprise

Using daily build 2016.3012, I cannot build an "OS X" version using either a Distribution or Development provisioning profile.

 

This is the build error I get in Corona Simulator:

 

Build Failed

 

ERROR: plugin code signing for '/Users/romero/Documents/coding/gunman-taco-truck/builds/macOS/Gunman Taco Truck.app/Contents/Plugins/libsteam_api.dylib' failed: /Users/romero/Documents/coding/gunman-taco-truck/builds/macOS/Gunman Taco Truck.app/Contents/Plugins/libsteam_api.dylib: main executable failed strict validation

 
 
This is what Apple support says:
 
codesign says my main executable failed strict validation.
  • Your Mach-O executable does not conform to modern Mach-O layout rules.

  • You may be using a third party development product that hasn't been brought up to date, or post-processed your file in unsupported ways.

 

Sounds like Corona SDK needs to be updated for this ability?

 

 

 



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 21,290 posts
  • Corona Staff

Are you including the Steam plugin?

 

Thanks

Rob



[TOPIC: post.html]
#3

theromero

[GLOBAL: userInfoPane.html]
theromero
  • Enthusiast

  • 77 posts
  • Enterprise

I was. Then i commented it out and it still won't build.



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 21,290 posts
  • Corona Staff

Are you getting a different error?



[TOPIC: post.html]
#5

theromero

[GLOBAL: userInfoPane.html]
theromero
  • Enthusiast

  • 77 posts
  • Enterprise

Same exact error without the Steam plugin.



[TOPIC: post.html]
#6

Perry Clarke

[GLOBAL: userInfoPane.html]
Perry Clarke
  • Moderator

  • 829 posts
  • Corona Staff

You'll need to manually delete the built .app after commenting out a plugin in build.settings to make sure it's not in the built .app due to a bug in the build process.

 

The Steam library has an issue with code signing that currently requires a workaround:

  1. Select "None" for the OS X build's "Provisioning Profile"
  2. Build the OS X desktop app
  3. Sign the *.app bundle with the following Terminal command line:
codesign --deep -f -s "Developer ID Application: <Company Name>" <PathToApp>


[TOPIC: post.html]
#7

theromero

[GLOBAL: userInfoPane.html]
theromero
  • Enthusiast

  • 77 posts
  • Enterprise

Manual codesigning is a huge rabbit hole when it doesn't work, which it didn't for me.

 

I found my certificates, used the macOS one I have, and it didn't work, even though I had it show me all the certs it knows about. The syntax for codesign is sloppy with so much capitalized English.

 

So, it would be nice to fix the provisioning bug in Corona SDK.



[TOPIC: post.html]
#8

Perry Clarke

[GLOBAL: userInfoPane.html]
Perry Clarke
  • Moderator

  • 829 posts
  • Corona Staff

The issue is with the way the Steam library is built (we don't have this issue with any others) and it's not clear that it is something we can fix in Corona.

 

Just in case I've misunderstood the issue you are seeing, can you PM me a complete log of a session in which the build fails?



[TOPIC: post.html]
#9

theromero

[GLOBAL: userInfoPane.html]
theromero
  • Enthusiast

  • 77 posts
  • Enterprise

Done.



[TOPIC: post.html]
#10

theromero

[GLOBAL: userInfoPane.html]
theromero
  • Enthusiast

  • 77 posts
  • Enterprise

  Best Answer

FOUND THE ISSUE. It's ridiculous; not sure it's your issue or not.

 

I commented-out the steamworks plugin from our build.settings and rebuilt the macOS version several times with little tweaks each time. Nothing mattered. It still failed the strict codesign process because the steamworks plugin was still being included.

 

I found that after you comment-out the steamworks plugin in build.settings you have to QUIT AND RERUN CORONA SDK.

 

That evidently clears it up and I can make development and distribution builds for macOS now.




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: provisioning profile, macos, osx, app