Ho utilizzato il simulatore per testare la mia app. Oggi ho deciso di testarlo utilizzando altri dispositivi nel simulatore e con mia sorpresa si va in crash all'avvio su alcuni dispositivi, in altri funziona perfettamentedyld: libreria non caricata: @ rpath/SwiftyJSON.framework/SwiftyJSON
mia app costruisce un funzionamenti su:
- iPad Air
- ridimensionabile iPad
- iPhone 5S
- iPhone 6
- iPhone 6plus
- iPhone ridimensionabile
My App si blocca su:
- iPad 2
- iPad Retina
- iPhone 4S
- iPhone 5
L'errore che sto Ottenere è:
dyld: Biblioteca non caricato: @ 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)
Qualche volta ho persino ottenere ulteriori informazioni:
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, but 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, but 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, but wrong architecture
(lldb)
ho installato SwiftyJson via Cocoapods. Il mio Podfile contiene
platform :ios, '8.0'
use_frameworks!
pod 'SQLite.swift', git: 'https://github.com/stephencelis/SQLite.swift.git'
target 'thinx Mobile' do
pod 'SwiftyJSON', '~> 2.2.1'
end
ho provato:
- pulita & ricostruzione
- soluzioni 1, 2, 3 da dyld: Library not loaded: @rpath/libswift_stdlib_core.dylib