Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command failed with exit code 65 #8

Open
CharlesOnAir opened this issue Nov 11, 2020 · 4 comments
Open

Command failed with exit code 65 #8

CharlesOnAir opened this issue Nov 11, 2020 · 4 comments

Comments

@CharlesOnAir
Copy link

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.`
@kbrin423
Copy link

kbrin423 commented May 4, 2021

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
Copy link

kbrin423 commented May 5, 2021

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>

@xmarkclx
Copy link
Owner

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

@nurfgun
Copy link

nurfgun commented Nov 17, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants