Xcrun error: failed to read permissions

So, I am trying to automate the build and archiving process through a script. In my script, I ran an xcodebuild script, and this builds fine. Then I try to run xcrun

/usr/bin/xcrun -sdk iphoneos PackageApplication "path_to_.app" -o "output_path" --sign "devname" --embed "provnprofile"

However, I get this error:

error: Failed to read entitlements from '/var/folders/U5/U5q0xqZRG6SrO8AMQkMjeE+++TM/-Tmp-/fIcrdMUa76/Payload/MyApp.app'

Does anyone have any ideas?

Thanks in advance

+5
source share
2 answers

I just ran into the same problem. This was due to my .app folder created using xcodebuild, which was not built successfully.

Try using xcodebuild with extended (-verbose) and check the stack trace.

Hope this helps.

+1
source

, Xcode. . , , , .

0

All Articles