Connect Objective-C framework to Swift iOS 8 app (Parse framework)

前端 未结 6 1831
你的背包
你的背包 2020-11-27 03:17

I am trying to use an Objective-C framework with the Swift programming language for iOS 8 development. This is a specific case of an import but the general problem is:

6条回答
  •  感动是毒
    2020-11-27 03:41

    To add Parse framework to the Swift project: Add this libaries to the Swift Project.

    enter image description here

    Paste this frameworks from ParseSDK to your project:

    enter image description here

    Add a ProjectName-Bridging-Header.h (https://developer.apple.com/library/ios/documentation/swift/conceptual/buildingcocoaapps/MixandMatch.html) (https://stackoverflow.com/a/24272431/1847511) file with such content.

    enter image description here

    Add path to tie bridging header:

    enter image description here

    Add the TestCode:

    enter image description here

    Run the app.

提交回复
热议问题