2015-08-05 3 views
6

Ich habe den Simulator verwendet, um meine App zu testen. Heute habe ich beschlossen, es mit anderen Geräten im Simulator zu testen und zu meiner Überraschung es bei einigen Geräten beim Start abstürzt, auf anderen es funktioniert perfektdyld: Bibliothek nicht geladen: @ rpath/SwiftyJSON.framework/SwiftyJSON

Meine App ein laufen auf Builds:

  • iPad Air
  • resizable iPad
  • iPhone 5S
  • iPhone 6
  • iPhone 6Plus
  • resizable iPhone

Meine App stürzt auf:

  • iPad 2
  • iPad Retina
  • iPhone 4S
  • iPhone 5

Der Fehler ich bin Das Erhalten ist:

dyld: Bibliothek nicht geladen: @ 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) 

Manchmal sogar ich weitere Informationen:

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) 

Ich installierte SwiftyJson über Cocoapods. Mein Podfile enthält

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 

Ich habe versucht:

Antwort

1

Nach fast einem Tag der Suche ich das Projekt neu aus scratch (neues Projekt, neues Podfile, neue Dateien, aber in jeder Datei kopiere den Quellcode aus dem ursprünglichen Projekt), die App kompiliert jetzt und läuft perfe gerade an jedem Simulator! Keine Fehler.

Aber ich habe immer noch einen ähnlichen, Fehler (aber anderen Grund) in tatsächlichen Geräten. Ich schloss diese Frage, aber es ist eine Follow-up-Frage für dieses Problem: dyld: Library not loaded: @rpath/SwiftyJSON.framework/SwiftyJSON

Verwandte Themen