capacitor icon indicating copy to clipboard operation
capacitor copied to clipboard

bug: Error when open iOS App

Open arielhernandezmusa opened this issue 6 years ago • 10 comments

Bug Report

Capacitor Version

npx cap doctor output:

💊 Capacitor Doctor 💊

Latest Dependencies: @capacitor/cli: 1.4.0 @capacitor/core: 1.4.0 @capacitor/android: 1.4.0 @capacitor/ios: 1.4.0

Installed Dependencies: @capacitor/cli 1.4.0 @capacitor/ios 1.4.0 @capacitor/core 1.4.0 @capacitor/android 1.4.0

Affected Platform(s)

  • [ ] Android
  • [x] iOS
  • [ ] Electron
  • [ ] Web

Current Behavior

App close immediately after opens, and on Xcode we get this error

` dyld: Library not loaded: @rpath/Capacitor.framework/Capacitor Referenced from: /private/var/containers/Bundle/Application/BA056E17-46F0-4B84-AEB1-6D3B7D85FEA6/App.app/App Reason: no suitable image found. Did find: /private/var/containers/Bundle/Application/BA056E17-46F0-4B84-AEB1-6D3B7D85FEA6/App.app/Frameworks/Capacitor.framework/Capacitor: code signature invalid for '/private/var/containers/Bundle/Application/BA056E17-46F0-4B84-AEB1-6D3B7D85FEA6/App.app/Frameworks/Capacitor.framework/Capacitor'

/private/var/containers/Bundle/Application/BA056E17-46F0-4B84-AEB1-6D3B7D85FEA6/App.app/Frameworks/Capacitor.framework/Capacitor: code signature invalid for '/private/var/containers/Bundle/Application/BA056E17-46F0-4B84-AEB1-6D3B7D85FEA6/App.app/Frameworks/Capacitor.framework/Capacitor'

/private/var/containers/Bundle/Application/BA056E17-46F0-4B84-AEB1-6D3B7D85FEA6/App.app/Frameworks/Capacitor.framework/Capacitor: stat() failed with errno=1
/private/var/containers/Bundle/Application/BA056E17-46F0-4B84-AEB1-6D3B7D85FEA6/App.app/Frameworks/Capacitor.framework/Capacitor: code signature invalid for '/private/var/containers/Bundle/Application/BA056E17-46F0-4B84-AEB1-6D3B7D85FEA6/App.app/Frameworks/Capacitor.framework/Capacitor'

/private/var/containers/Bundle/Application/BA056E17-46F0-4B84-AEB1-6D3B7D85FEA6/App.app/Frameworks/Capacitor.framework/Capacitor: stat() failed with errno=1

(lldb) `

Expected Behavior

App open without problems

Sample Code or Sample Application Repo

https://github.com/arielhernandezmusa/capacitor-camera-preview-demos/tree/master/ccpd-react

Reproduction Steps

run npx open ios and start the app on a device

Other Technical Details

npm --version output: 6.12.1

node --version output: v12.13.1

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

Other Information

arielhernandezmusa avatar Jan 29 '20 14:01 arielhernandezmusa

Same error on 2 iPhone7 after updating to iOS 13.3.1 (Same version of app worked before iOS update)

On Multiple iPads with iOS 13.3 no error, runs perfectly fine.

heda avatar Jan 29 '20 19:01 heda

It's some CocoaPods problem, a lot of projects are affected. In one of the issues I saw this

Are you using a non-developer Apple ID to install the app to your phone? It looks like iOS 13.3.1 has broken apps installed with free Apple IDs, but only if they contain embedded frameworks.

Are you using a free or paid account?

I've been using 13.3.1 beta for a while without problems

jcesarmobile avatar Jan 30 '20 09:01 jcesarmobile

For me it‘s the free account.

heda avatar Jan 30 '20 09:01 heda

Yep, if’s the free account, with a paid account the app runs without problems

arielhernandezmusa avatar Jan 30 '20 11:01 arielhernandezmusa

going to close with Apple bug tag, it's either an Xcode bug or CocoaPods bug, nothing we can do from Capacitor.

I've seen some suggestions of removing use_frameworks! from the Podfile, but not sure if Capacitor will work without it

jcesarmobile avatar Jan 30 '20 11:01 jcesarmobile

I suggest you to use iOS simulator and wait when Apple fix this and change build to cordova.

erichstark avatar Feb 20 '20 11:02 erichstark

I have just encountered this same bug. Meanwhile iOS 13.4, macOS 10.15.4 and Xcode 11.4 has been released and the bug appears to be fixed. Could you check again @arielhernandezmusa @heda ?

tiagomsmagalhaes avatar Mar 24 '20 22:03 tiagomsmagalhaes

I am having same issue. Can someone help?. I am using paid account and despite that I am getting same error.

aaqibkhorasi avatar May 06 '20 18:05 aaqibkhorasi

Upgrading to Capacitor 2.0

SSuarezBrooktec avatar May 07 '20 09:05 SSuarezBrooktec

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[bot] avatar Nov 11 '22 22:11 ionitron-bot[bot]