简体   繁体   中英

Error in Mapbox : Only factory methods can have the 'swift_name' attribute

I am integrating the Mapbox iOS SDK using pod. I am following the instruction to integrate the SDK from its developer site .

But the problem is after installing the pod While tryingt to build, I can see the error as

Only factory methods can have the 'swift_name' attribute

And I am not able to import the header file Mapbox.h

I have also downloaded the demo project provided in the Github, but that was also giving same error.

For now I have commented the methods those are throwing error and now my project runs successfully. But that is not the solution. So hope some one can put some light so as to resolve the issue.

NB : My Xcode version is 7.1 and language is Objective C.

将您的xcode从7.1更新到7.3

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