Swift and Google Maps SDK. Confused with Bridging Header -
i new ios development , trying user google maps sdk swift. according docs have next import objectiv-c libraries swift project:
under build settings, create sure objective-c bridging header build setting under swift compiler - code generation has path header. path must straight file itself, not directory it’s in.
https://developer.apple.com/library/prerelease/ios/documentation/swift/conceptual/buildingcocoaapps/mixandmatch.html
the mentioned settings this: http://image.bayimg.com/f0674c9d6da65a0b8b2aada4ead273635625e83e.jpg
where should add together path header want use?
(answered in question edit. converted community wiki answer. see what appropriate action when reply question added question itself? )
the op wrote:
problem solved anil's comment. misunderstood docs. xcode creates header-file named projectname-bridging-header.h
in project, , objectivec libraries can imported there. in case looks this:
// // utilize file import target's public headers expose swift. // #import <googlemaps/googlemaps.h>
after that, functions googlemaps/googlemaps.h can accessed in every swift class.
swift google-maps-sdk-ios xcode6
No comments:
Post a Comment