Error: Error code 70 for command: xcodebuild


#1

Dear Devs,
I am using ioic 3.9.2(but the project type is ionic1)
xcode 8.2.1
and
cordova 7.0.1

i can build and run the project with xcode with no problem
but the problem is when running
ionic cordova run ios :frowning:
tested

ionic cordova run ios l --device too.
ionic build run ios

and …
i have just added cordova-plugin-camera-preview plugin
the full error :

_** EXPORT FAILED **_

__`_Error: Error code 70 for command: xcodebuild with args: -exportArchive,-archivePath,MyApp.xcarchive,-exportOptionsPlist,/Users/sadra/Documents/pasokhplus-ios/platforms/ios/exportOptions.plist,-exportPath,/Users/sadra/Documents/pasokhplus-ios/platforms/ios/build/device_`__

UPDATE1 : I have also tested ionic 1 project with no plugin exactly same error :frowning:
UPDATE2 : I also tested the same with ionic v2{first opening xcode project and set the provisioning profile and such then…and run app on phone then using ionic cordova run ios } and raw cordova one still there is the probem. :frowning:
if needed my os version is macOS 10.12.3(sierra)
UPDATE3 : version of cordova-ios@~4.4.0
UPDATE4 : I should’ve mentioned that I’m using Mac on VMWARE but it seems that it’s irrelevent to using virtual OS.
SOLUTION : still no solution.


Error in Ionic package, Error Code 70
#2

I am working on a Ionic V2 Project, and i am facing this issue.

Please let me know any solution to this.


#3

are you using Mac on vmware or sth?
our problem might be related to using of virtual OS.


#4

Sorry for the late response.

I am using MAC for doing the Build process in iOS.


#5

really no soloution after about a month???


#6

I figured it out how to fix this. Please see my answer on StackOverflow