Gavin Beard
Gavin Beard

Reputation: 199

Framework causing crash (swift)

I am using the ReachabilitySwift framework (installed via Cocoapods) and it works perfectly on the Simulator. If I try to run directly on the device it crashes immediately. I have the following error in the log each time:

Exception Type:  EXC_CRASH
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: DYLD, Filesystem Sandbox | (terminated at launch; ignore backtrace) | Library: @rpath/ReachabilitySwift.framework/ReachabilitySwift | Referenced from: /var/containers/Bundle/Application/0B099F11-558A-4B1D-BEAE-15A1AF8C0BD5/com.gavinb.app.app/com.gavinb.app
Triggered by Thread:  0

I've removed ReachabilitySwift and re-added. I am not even importing into any of my Swift files.

Are there any other steps I can take to stop this on device?

Upvotes: 1

Views: 313

Answers (1)

Asdrubal
Asdrubal

Reputation: 2461

Are you adding use_frameworks! to your podfile?

use_frameworks! 
platform :ios, '8.0'

pod 'ThePod'

Upvotes: 1

Related Questions