error: exportArchive: You don’t have permission to save the file “HelloWorld.ipa” in the folder “HelloWorld”.

 

 After a successful clean environment and generate archive files, the final step in the export ipa package, getting permissions problems:

you don’t have permission to save the file “HelloWorld.ipa” in the folder “HelloWorld

Given as follows:

1 apple:HelloWorld wangju$ xcodebuild -exportArchive -archivePath build/HelloWorld.xcarchive -exportPath /build/HelloWorld/HelloWorld.ipa -exportOptionsPlist /Users/5i5j/Desktop/test/build/ExportOptions.plist
2 2019-08-15 13:00:44.623 xcodebuild[8380:246170] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/0l/l9z17kfn7tjb_k9_fmhsr9lr0000gn/T/HelloWorld_2019-08-15_13-00-44.623.xcdistributionlogs'.
3 error: exportArchive: You don’t have permission to save the file “HelloWorld.ipa” in the folder “HelloWorld”.
4 
5 Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “HelloWorld.ipa” in the folder “HelloWorld”." UserInfo={NSFilePath=/build/HelloWorld/HelloWorld.ipa, NSUnderlyingError=0x7ff1e06925f0 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}
6 
7 ** EXPORT FAILED **

Such a change, it's useless: https: //blog.csdn.net/qq_27127385/article/details/89308551

Well, a change in thinking, since there is no authority to HelloWorld (where the project file folder) export ipa, then I change a folder

Export success, problem solved

1 apple:HelloWorld machenglin$ xcodebuild -exportArchive -archivePath build/HelloWorld.xcarchive -exportPath /Users/5i5j/Desktop/test/build/HelloWorld/HelloWorld.ipa -exportOptionsPlist /Users/5i5j/Desktop/test/build/ExportOptions.plist
2 2019-08-15 13:02:56.596 xcodebuild[8630:248915] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/0l/l9z17kfn7tjb_k9_fmhsr9lr0000gn/T/HelloWorld_2019-08-15_13-02-56.595.xcdistributionlogs'.
3 Exported HelloWorld to: /Users/5i5j/Desktop/test/build/HelloWorld/HelloWorld.ipa
4 ** EXPORT SUCCEEDED **

 

Guess you like

Origin www.cnblogs.com/kaerxifa/p/11357342.html