mapbox / mapbox-gl-native

Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
4.37k stars 1.33k forks source link

Interface Builder doesn't recognize classes without -ObjC linker flag #3113

Closed incanus closed 8 years ago

incanus commented 8 years ago

Discovered by @friedbunny and applies to any manual binary install method. You can't use MGLMapView from IB without referencing it elsewhere in code.

Should be able to fix this with a combo of +load and calling MGLMapView from our category loader from #2967.

/cc @friedbunny @1ec5

1ec5 commented 8 years ago

This issue was introduced in #2967. The call to +[MGLCategoryLoader loadCategories] should also move from +[MGLAccountManager sharedManager] to +[MGLAccountManager load], so that it runs before the storyboard loads, even if the access token isn’t set in the Info.plist. Otherwise, the designable will likely fail to compile at design time.