ios - dyld: Library not loaded: @rpath/SwiftyJSON.framework/SwiftyJSON -


i've been using simulator test app. today decided test using other devices in simulator , surprise crashes on startup on devices, on others works perfectly

my app builds runs on :

  • ipad air
  • resizable ipad
  • iphone 5s
  • iphone 6
  • iphone 6plus
  • resizable iphone

my app crashes on:

  • ipad 2
  • ipad retina
  • iphone 4s
  • iphone 5

the error i'm getting :

dyld: library not loaded: @rpath/swiftyjson.framework/swiftyjson

referenced from: /users/data/library/developer/coresimulator/devices/2accff1f-d35f-444a-b709-2a41ac9cc7d2/data/containers/bundle/application/da7480f6-4032-4eb5-a51f-5d028088ffe1/demo mobile.app/demo mobile reason: no suitable image found. (lldb)  

sometimes more information :

referenced from: /users/data/library/developer/coresimulator/devices/2accff1f-d35f-444a-b709-2a41ac9cc7d2/data/containers/bundle/application/da7480f6-4032-4eb5-a51f-5d028088ffe1/demo mobile.app/demo mobile reason: no suitable image found.  did find: /users/data/library/developer/coresimulator/devices/2accff1f-d35f-444a-b709-2a41ac9cc7d2/data/containers/bundle/application/da7480f6-4032-4eb5-a51f-5d028088ffe1/demo mobile.app/frameworks/swiftyjson.framework/swiftyjson: mach-o, wrong architecture /users/data/library/developer/coresimulator/devices/2accff1f-d35f-444a-b709-2a41ac9cc7d2/data/containers/bundle/application/da7480f6-4032-4eb5-a51f-5d028088ffe1/demo mobile.app/frameworks/swiftyjson.framework/swiftyjson: mach-o, wrong architecture /users/data/library/developer/coresimulator/devices/2accff1f-d35f-444a-b709-2a41ac9cc7d2/data/containers/bundle/application/da7480f6-4032-4eb5-a51f-5d028088ffe1/demo mobile.app/frameworks/swiftyjson.framework/swiftyjson: mach-o, wrong architecture (lldb)  

i installed swiftyjson via cocoapods. podfile contains

platform :ios, '8.0' use_frameworks!  pod 'sqlite.swift', git: 'https://github.com/stephencelis/sqlite.swift.git'  target 'thinx mobile'     pod 'swiftyjson', '~> 2.2.1' end 

i tried :

after searching day rebuild project scratch (new project, new podfile, new files in each file copy-paste source code original project) app compiles , runs on every simulator! no errors.

but still got similar, error (but different reason) in on actual devices. closed question there follow question problem : dyld: library not loaded: @rpath/swiftyjson.framework/swiftyjson


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -