meteor-ios icon indicating copy to clipboard operation
meteor-ios copied to clipboard

Application crashes when running on iPhone

Open callmeahab opened this issue 9 years ago • 6 comments

App crashes when running on iPhone with the message:

dyld: Library not loaded: @rpath/InflectorKit.framework/InflectorKit
  Referenced from: /private/var/mobile/Containers/Bundle/Application/*****
  Reason: no suitable image found.  Did find:
    /private/var/mobile/Containers/Bundle/Application/*****/Frameworks/InflectorKit.framework/InflectorKit: mach-o, but wrong architecture
    /private/var/mobile/Containers/Bundle/Application/*****/Frameworks/InflectorKit.framework/InflectorKit: mach-o, but wrong architecture
    /private/var/mobile/Containers/Bundle/Application/*****/Frameworks/InflectorKit.framework/InflectorKit: mach-o, but wrong architecture

Works fine on iPad. Both devices are running iOS 8.4. I installed meteor through cocoapods. Running the latest version of cocoapods, 0.38.2, and did both pod installand pod update.

callmeahab avatar Jul 29 '15 09:07 callmeahab

i am having the same issue! @martijnwalraven any solution?

I get a series of errors telling me it has failed to code sign such things as InflectorKit, which came with the Meteor installation. I can code sign each of the projects that the Pods workspace includes, and once I get past that I can install the app on a device, but it crashes immediately, saying, "Library not loaded: @rpath/InflectorKit.framework/InflectorKit" in the device's crash log.

sferoze avatar Aug 10 '15 18:08 sferoze

It has been a while since I worked on this, so this may be due to changes in newer versions of CocoaPods or Xcode. I won't have time to look into this for at least a few days, so please let me know if you find out anything!

martijnwalraven avatar Aug 10 '15 19:08 martijnwalraven

@callmeahab did you find any resolution?

I thought I had it by changing the framework linking to optional, but then the library doesn't get loaded at all, and while the app doesn't crash, it can't interact with meteor, either.

sferoze avatar Aug 10 '15 23:08 sferoze

I've created static frameworks using carthage, and it works fine in the simulator, but the minute you put it on a device it gives the same error "Library not loaded: @rpath/InflectorKit.framework/InflectorKit"

I had changed the frameworks to optional, and thought I had it, but then nothing worked in the app...

sferoze avatar Aug 10 '15 23:08 sferoze

@sferoze I cloned the project repo to a new location, did pod install and ran it on iPhone first, and it works. May be an issue with the framework architecture. Now the app works on both iPhone and iPad.

callmeahab avatar Aug 11 '15 00:08 callmeahab

@callmeahab

Thanks

I was able to build by doing the same. Cloning my project into a new location and then running 'pod install'

sferoze avatar Aug 11 '15 01:08 sferoze