问题
I've just updated to GMS version 1.7.0 and can not build successfully with Base SDK iOS6.1.
- I could build GMS version 1.7.0 with Base SDK iOS7.0 successfully.
- I also could build old GMS version 1.6.0 with Base SDK iOS6.0 or 7.0 successfully.
Below is my error content:
Undefined symbols for architecture i386: "_glMapBufferRange", referenced from: gmscore::renderer::BufferObject::MapBuffer() in GoogleMaps(BufferObject.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can someone give me advice, thank you for your help.
回答1:
I was having this same problem and has been searching for 2days for solution. But suddenly i got the solution myself. It happens when you use more than one SDK in the simulator. The SDK was not compatible with my project. I was using SDK iOS 6 and SDK iOS 7 both. And SDK iOS 6 was creating this error. Once i delete the SDK iOS 6 and restarted my xCode, it worked perfectly fine. Both in simulator and device.
Hope this helps. Thanks.
回答2:
It seems like _glMapBufferRange is an OpenGLES 3.0 function, while iOS6.1 only has OpenGLES 2.0:
https://www.khronos.org/opengles/sdk/docs/man3/html/glMapBufferRange.xhtml
来源:https://stackoverflow.com/questions/21800433/can-not-build-google-maps-sdk-for-ios-version-1-7-0-with-ios6-1-sdk