watsonbox / ios_google_places_autocomplete

Google Places address entry for iOS (Swift)
MIT License
269 stars 69 forks source link

Getting an error: "Include of non-modular header inside framework module 'FBSnapshotTestCase.FBSnapshotTestCase'" #31

Open oferRounds opened 9 years ago

oferRounds commented 9 years ago

Any idea? Tried few suggestions - nothing worked. This when trying to run the Example project.

If I comment the improt: #import <FBSnapshotTestCase/FBSnapshotTestCasePlatform.h> on the FBSnapshotTestCase it works, but the I get the follwing crash when runing:

dyld: Library not loaded: @rpath/GooglePlacesAutocomplete.framework/GooglePlacesAutocomplete Referenced from: /private/var/mobile/Containers/Bundle/Application/7301485E-5E52-444D-AED6-2C47FD1CDAD1/GooglePlacesAutocompleteExample.app/GooglePlacesAutocompleteExample Reason: image not found

oferRounds commented 9 years ago

Update: I solved the issue by changing this import to "" instead of <>.

But now I left with the aforementiond crash.

oferRounds commented 9 years ago

@josephkandi - any idea?

josephkandi commented 9 years ago

@oferRounds How are you including the library in your project? Are you suing Cocoapods or doing a manual integration?

If using Cocoapods you will need to have this line in your Podfile use_frameworks!, if not try integrating the library manually by copying the GoogleAutoPlacesComplex.swift file .xib and try again.

oferRounds commented 9 years ago

Hi @josephkandi

Thanks for replying!

I actually reffered here to the example project. But later on I just tried to include it in the project (did it manually). I didn't try to actually use it yet, but I can tell that it does get build. I will try tomorrow to start using, hopefully I would not get this same runtime crash.