Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcrun error: Failed to read entitlements from

So im trying to automate the build and archive process through a script. In my script, I run the xcodebuild script and that builds fine. Then I try to run the 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'

Anyone have any ideas why?

Thanks in advance

like image 716
baselq Avatar asked Nov 14 '22 20:11

baselq


1 Answers

I just encountered the same issue. It was actually related to my .app folder generated with xcodebuild which wasn't successfully built.

Try to use xcodebuild with the verbose (-verbose) enabled and check the stack trace.

I hope it will help.

like image 173
griable Avatar answered Mar 22 '23 23:03

griable