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

bug: ios xcode build width error "library not found for -ljcore-ios-2.1.4" #2632

Closed
3 tasks
AlwaysLoveme opened this issue Mar 25, 2020 · 10 comments · Fixed by #2636
Closed
3 tasks

bug: ios xcode build width error "library not found for -ljcore-ios-2.1.4" #2632

AlwaysLoveme opened this issue Mar 25, 2020 · 10 comments · Fixed by #2636

Comments

@AlwaysLoveme
Copy link

Bug Report

Capacitor Version

npx cap doctor output:

Latest Dependencies:

  @capacitor/cli: 1.5.1

  @capacitor/core: 1.5.1

  @capacitor/android: 1.5.1

  @capacitor/electron: 1.5.1

  @capacitor/ios: 1.5.1

Installed Dependencies:

  @capacitor/electron not installed


  @capacitor/cli 2.0.0-beta.0

  @capacitor/core 2.0.0-beta.0

  @capacitor/ios 2.0.0-beta.1

  @capacitor/android 2.0.0-beta.0

[success] Android looking great! 👌
  Found 11 Capacitor plugins for ios:
    cordova-plugin-camera (4.1.0)
    cordova-plugin-device (2.0.3)
    cordova-plugin-file (6.0.2)
    cordova-plugin-file-transfer (1.7.1)
    cordova-plugin-jcore (1.3.1)
    cordova-plugin-media-capture (3.0.3)
    cordova-plugin-network-information (2.0.3-dev)
    cordova-plugin-qrscanner (3.0.1)
    cordova-plugin-streaming-media (2.2.0)
    jpush-phonegap-plugin (3.7.3)
    phonegap-plugin-mobile-accessibility (1.0.5)
[success] iOS looking great! 👌

Affected Platform(s)

  • Android
  • [ x ] iOS
  • Electron
  • Web

Current Behavior

xcode build error

Expected Behavior

xcode build success

Sample Code or Sample Application Repo

Reproduction Steps

Other Technical Details

npm --version output: 6.13.4

node --version output: 12.16.1

pod --version output (iOS issues only): 1.9.1

Other Information

@jcesarmobile
Copy link
Member

Can you provide a sample app?

@jcesarmobile jcesarmobile added the needs reply needs reply from the user label Mar 25, 2020
@AlwaysLoveme
Copy link
Author

Can you provide a sample app?

there is https://github.com/AlwaysLoveme/ionic5DemoApp.git

@AlwaysLoveme
Copy link
Author

Can you provide a sample app?

I tried [email protected], but also build error

@jcesarmobile
Copy link
Member

I can't reproduce the library not found for -ljcore-ios-2.1.4 error, just the other one you reported yesterday

@AlwaysLoveme
Copy link
Author

我无法重现该library not found for -ljcore-ios-2.1.4错误,仅是您昨天报告的另一个错误

since I add plugin "jpush-phonegap-plugin", Xcode build with error "library not found for -ljcore-ios-2.1.4"

@AlwaysLoveme
Copy link
Author

I can't reproduce the library not found for -ljcore-ios-2.1.4 error, just the other one you reported yesterday

so, the other one error can resolved?

@jcesarmobile
Copy link
Member

there is something wrong with the jcore-ios.a file, I've reported it in their repository and proposed a possible solution they can implement
jpush/cordova-plugin-jcore#7

@jcesarmobile
Copy link
Member

so, the problem is CocoaPods doesn't allow .a libraries without lib prefix in the name, I've patched the CLI to prepend lib to .a files if they didn't have it already.

@AlwaysLoveme
Copy link
Author

so, the problem is CocoaPods doesn't allow .a libraries without lib prefix in the name, I've patched the CLI to prepend lib to .a files if they didn't have it already.

Hi, i copy this commit change to my local @capacitor/cli which is "fix(cordova): Add lib prefix to .a library names (#2636)", now Xcode build success width no errors, but the app in my iphone can not running, it is crashed, here is my demo: https://github.com/AlwaysLoveme/demo_.git

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 12, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants