Ionic cordova build ios

ionic cordova build iOS

 cordova build ios
⠏ Running command [11:33:50]  lint finished in 22.90 s 
✖ Running command - failed!

[ERROR] Cordova encountered an error.
        You may get more insight by running the Cordova command above directly.
        
[ERROR] An error occurred while running cordova build ios (exit code 1):
        
        (truncated) ... -arch_only arm64 -syslibroot
        /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk
        -L/Users/medamine/myApp/platforms/ios/build/device -filelist
        /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
        Ali/IntermediateBuildFilesPath/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/Cordova.LinkFileList
        -o
        /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
        Ali/IntermediateBuildFilesPath/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/libCordova.a
        
        CreateUniversalBinary
        /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
        Ali/IntermediateBuildFilesPath/UninstalledProducts/libCordova.a normal
        armv7\ arm64
        cd /Users/medamine/myApp/platforms/ios/CordovaLib
        export
        PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
        -static
        /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
        Ali/IntermediateBuildFilesPath/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/armv7/libCordova.a
        /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
        Ali/IntermediateBuildFilesPath/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/libCordova.a
        -o
        /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
        Ali/IntermediateBuildFilesPath/UninstalledProducts/libCordova.a
        
        Strip
        /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
        Ali/IntermediateBuildFilesPath/UninstalledProducts/libCordova.a
        cd /Users/medamine/myApp/platforms/ios/CordovaLib
        export
        PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip
        -S
        /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
        Ali/IntermediateBuildFilesPath/UninstalledProducts/libCordova.a
        
        SetOwnerAndGroup medamine:staff
        /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
        Ali/IntermediateBuildFilesPath/UninstalledProducts/libCordova.a
        cd /Users/medamine/myApp/platforms/ios/CordovaLib
        export
        PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
        /usr/sbin/chown -RH medamine:staff
        /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
        Ali/IntermediateBuildFilesPath/UninstalledProducts/libCordova.a
        
        SetMode u+w,go-w,a+rX
        /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
        Ali/IntermediateBuildFilesPath/UninstalledProducts/libCordova.a
        cd /Users/medamine/myApp/platforms/ios/CordovaLib
        export
        PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
        /bin/chmod -RH u+w,go-w,a+rX
        /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
        Ali/IntermediateBuildFilesPath/UninstalledProducts/libCordova.a
        
        === BUILD TARGET Esmet Ali OF PROJECT Esmet Ali WITH CONFIGURATION Debug
        ===
        
        Check dependencies
        Code Sign error: No code signing identities found: No valid signing
        identities (i.e. certificate and private key pair) were found.
        
        ** ARCHIVE FAILED **
        
        
        The following build commands failed:
        Check dependencies
        (1 failure)
        Error: Error code 65 for command: xcodebuild with args:
        -xcconfig,/Users/medamine/myApp/platforms/ios/cordova/build-debug.xcconfig,-workspace,Esmet
        Ali.xcworkspace,-scheme,Esmet
        Ali,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,Esmet
        Ali.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/medamine/myApp/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/medamine/myApp/platforms/ios/build/sharedpch

Little bit rude to just dump some stuff here and expect us to formulate an answer to a non-existing question. So, what’s your question, what’s your problem and what did you already try to solve it? (I believe the error is quite self-explanatory actually)

The problem is when I execute the following command :
ionic cordova build iOS
it shows this error :
cordova build ios
⠏ Running command [11:33:50] lint finished in 22.90 s
:heavy_multiplication_x: Running command - failed!

[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.

[ERROR] An error occurred while running cordova build ios (exit code 1):

    (truncated) ... -arch_only arm64 -syslibroot
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk
    -L/Users/medamine/myApp/platforms/ios/build/device -filelist
    /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
    Ali/IntermediateBuildFilesPath/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/Cordova.LinkFileList
    -o
    /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
    Ali/IntermediateBuildFilesPath/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/libCordova.a
    
    CreateUniversalBinary
    /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
    Ali/IntermediateBuildFilesPath/UninstalledProducts/libCordova.a normal
    armv7\ arm64
    cd /Users/medamine/myApp/platforms/ios/CordovaLib
    export
    PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
    -static
    /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
    Ali/IntermediateBuildFilesPath/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/armv7/libCordova.a
    /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
    Ali/IntermediateBuildFilesPath/CordovaLib.build/Debug-iphoneos/CordovaLib.build/Objects-normal/arm64/libCordova.a
    -o
    /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
    Ali/IntermediateBuildFilesPath/UninstalledProducts/libCordova.a
    
    Strip
    /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
    Ali/IntermediateBuildFilesPath/UninstalledProducts/libCordova.a
    cd /Users/medamine/myApp/platforms/ios/CordovaLib
    export
    PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip
    -S
    /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
    Ali/IntermediateBuildFilesPath/UninstalledProducts/libCordova.a
    
    SetOwnerAndGroup medamine:staff
    /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
    Ali/IntermediateBuildFilesPath/UninstalledProducts/libCordova.a
    cd /Users/medamine/myApp/platforms/ios/CordovaLib
    export
    PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /usr/sbin/chown -RH medamine:staff
    /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
    Ali/IntermediateBuildFilesPath/UninstalledProducts/libCordova.a
    
    SetMode u+w,go-w,a+rX
    /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
    Ali/IntermediateBuildFilesPath/UninstalledProducts/libCordova.a
    cd /Users/medamine/myApp/platforms/ios/CordovaLib
    export
    PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /bin/chmod -RH u+w,go-w,a+rX
    /Users/medamine/Library/Developer/Xcode/DerivedData/Esmet_Ali-ejzwuoxmdcxrgxflerfctzfbaeul/Build/Intermediates/ArchiveIntermediates/Esmet\
    Ali/IntermediateBuildFilesPath/UninstalledProducts/libCordova.a
    
    === BUILD TARGET Esmet Ali OF PROJECT Esmet Ali WITH CONFIGURATION Debug
    ===
    
    Check dependencies
    Code Sign error: No code signing identities found: No valid signing
    identities (i.e. certificate and private key pair) were found.
    
    ** ARCHIVE FAILED **
    
    
    The following build commands failed:
    Check dependencies
    (1 failure)
    Error: Error code 65 for command: xcodebuild with args:
    -xcconfig,/Users/medamine/myApp/platforms/ios/cordova/build-debug.xcconfig,-workspace,Esmet
    Ali.xcworkspace,-scheme,Esmet
    Ali,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,Esmet
    Ali.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/medamine/myApp/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/medamine/myApp/platforms/ios/build/sharedpch

So did you set a code signing identity? I.e. did you set a developers profile which you’re building against?

yes with Xcode developer

So if you just build, open xCode and run it from there? I really suspect it’s due to a lack of a valid signing profile if this is what I should be going on.

1 Like