Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcrun Unable to copy to /var/folders

Tags:

xcode

ios

iphone

I'm getting errors when trying to run /usr/bin/xcrun

 /usr/bin/xcrun -sdk iphoneos PackageApplication /Users/xxxx/bamboo-agent-home/xml-data/build-dir/BEAM-IOS0-JOB1/archive.xcarchive/Products/Applications/MyApp.app -o /Users/xxxxx/bamboo-agent-home/xml-data/build-dir/BEAM-IOS0-JOB1/MyApp.ipa --sign "iPhone Distribution: MyComp" --embed /Users/xxxx/bamboo-agent-home/xml-data/build-dir/iOS_Team_Provisioning_Profile_.mobileprovision

and error is like this:

error: Unable to copy '/Users/xxxxx/bamboo-agent-home/xml-data/build-dir/iOS_Team_Provisioning_Profile_.mobileprovision' 

to    '/var/folders/1t/pgh7fy550vl8nrvtmqhvn_780000gn/T/cjftmH0k7i/Payload/MyApp.app/embedded.mobileprovision'

Any idea? What's wrong with this case?

like image 518
Luman75 Avatar asked Dec 03 '13 18:12

Luman75


1 Answers

The provisioning file has been already embedded in your application (MyApp.app) You can check this by extracting the .app using Archive Utility.

Remove the part --embed /Users/xxxx/bamboo-agent-home/xml-data/build-dir/iOS_Team_Provisioning_Profile_.mobileprovision from the command line and try again.

like image 149
Vandana Sharma Avatar answered Oct 16 '22 09:10

Vandana Sharma