Framework not found GoogleMaps sdk in iOS

后端 未结 12 2071
伪装坚强ぢ
伪装坚强ぢ 2020-12-08 20:14

I want to use google map to existing(not a new one) iPhone project.Now i am using Google map ios sdk and i successfully added google map framework to my project.But i got er

12条回答
  •  南方客
    南方客 (楼主)
    2020-12-08 20:54

    Follow the steps :

    • Download GoogleMaps-iOS-1.1.0.zip from their site
    • Unzip the file. You now have a GoogleMaps-iOS-1.1.0 folder
    • In that folder you have a GoogleMaps.framework folder.
    • Copy or move the GoogleMaps.framework folder to inside your project folder (in Finder).
    • Drag the GoogleMaps.framework folder onto your Frameworks group in Xcode.
    • In the options sheet, uncheck "Copy items into destination group's folder". Make sure your target is checked in "Add to targets". Click OK.
    • (Note that you can also do this the other way, by not copying it into your project folder and checking "Copy items into destination group's folder". Xcode will copy the folder itself.)

    • Import using #import "GoogleMaps/GoogleMaps.h". The angle bracket usually work too, but in this case it should use quotes.

    From : file not found Google Maps SDK for iOS

提交回复
热议问题