简体   繁体   中英

Google Map ios sdk does not work in device, but work in simulator

I am using google ios sdk v1.2.2. I have created a very basic code to show google map view, which works fine in simulator both on iPhone and iPad. But when I try to run the same code in device (iPad 2, iOS 6.0). I get the following error.

'GMSException', reason: 'Google Maps SDK for iOS requires GoogleMaps.bundle to be part of your target under 'Copy Bundle Resources

I checked on internet and others post on stack overflow. It recommends to put GoogleMaps.Bundle from resources folder to your project folder, I have already did that, what else I can do to fix that error.

It sounds like you haven't added the bundle to the framework list.

Select the target and go to Build Phases, then in 'Link Binary with Libraries', hit '+' then Add Other. Select the bundle in the file browser and then retry.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM