cordova-plugin-photo-library-sism icon indicating copy to clipboard operation
cordova-plugin-photo-library-sism copied to clipboard

Command failed with exit code 65

Open CharlesOnAir opened this issue 3 years ago • 4 comments

Hello,

I have this error when I try to build my application under iOs after installing your plugin.

Thank you

`** BUILD FAILED **

The following build commands failed: CompileSwift normal x86_64 /Users/charlessauvat/appdev/skate/platforms/ios/skate/Plugins/cordova-plugin-photo-library-sism/PhotoLibraryService.swift CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (2 failures) xcodebuild: Command failed with exit code 65 [ERROR] An error occurred while running subprocess cordova.

    cordova build ios exited with exit code 65.
    
    Re-running this command with the --verbose flag may provide more information.`

CharlesOnAir avatar Nov 11 '20 13:11 CharlesOnAir

Hello! 👋🏻

Same for me:

`** ARCHIVE FAILED **

The following build commands failed: CompileSwift normal arm64 /Users/brin/..../Plugins/cordova-plugin-photo-library-sism/PhotoLibraryProtocol.swift CompileSwift normal arm64 /Users/brin/..../Plugins/cordova-plugin-photo-library-sism/PhotoLibraryService.swift CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (3 failures) xcodebuild: Command failed with exit code 65 [ERROR] An error occurred while running subprocess cordova.`

Ionic:

Ionic CLI : 6.12.2 (/Users/brin/.nvm/versions/node/v10.16.0/lib/node_modules/@ionic/cli) Ionic Framework : @ionic/angular 5.3.2 @angular-devkit/build-angular : 0.1102.8 @angular-devkit/schematics : 11.2.8 @angular/cli : 11.2.8 @ionic/angular-toolkit : 3.1.1

Cordova:

Cordova CLI : 10.0.0 Cordova Platforms : android 9.0.0, ios 6.2.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 30 other plugins)

Utility:

cordova-res (update available: 0.15.3) : 0.15.1 native-run (update available: 1.3.0) : 1.1.0

System:

Android SDK Tools : 26.1.1 (/Users/brin/Library/Android/sdk) ios-deploy : 1.9.2 ios-sim : 8.0.2 NodeJS : v10.16.0 (/Users/brin/.nvm/versions/node/v10.16.0/bin/node) npm : 6.14.11 OS : macOS Big Sur Xcode : Xcode 12.5 Build version 12E262

with: "cordova-plugin-add-swift-support": "^2.0.2"

kbrin423 avatar May 04 '21 07:05 kbrin423

My solution:

add this:

.. /src/ios/Bridging-Header.h

//
//  Use this file to import your target's public headers that you would like to expose to Swift.
//

#import <Cordova/CDV.h>

kbrin423 avatar May 05 '21 15:05 kbrin423

Cool, feel free to PR @kbrin423 . I don't encounter this issue so I haven't updated the codebase with the fix yet.

xmarkclx avatar May 28 '21 16:05 xmarkclx

I think #9 is the same as this one.

@kbrin423 Can you kindly elaborate? I forked the project, added a file named "PhotoLibrary-Bridging-Header.h" at src/ios with #import <Cordova/CDV.h> in it, and I wrote in the /plugin.xml without success.

My build env is : Cordova:

Cordova CLI : 10.0.0 Cordova Platforms : ios 6.2.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 33 other plugins)

Utility:

cordova-res : 0.15.3 native-run (update available: 1.5.0) : 1.4.0

System:

Android SDK Tools : 26.1.1 (/Users/daniel/Library/Android/sdk) ios-deploy : 1.11.4 ios-sim : 8.0.2 NodeJS : v12.22.5 (/Users/daniel/.nvm/versions/node/v12.22.5/bin/node) npm : 6.14.14 OS : macOS Big Sur Xcode : Xcode 12.5.1 Build version 12E507

nurfgun avatar Nov 17 '21 02:11 nurfgun