Switching to be a Cocoapods library, fix crash.