Can't use Swift classes inside Objective-C

前端 未结 25 2033
野趣味
野趣味 2020-11-22 08:10

I try to integrate Swift code in my app.My app is written in Objective-C and I added a Swift class. I\'ve done everything described he

相关标签:
25条回答
  • 2020-11-22 08:37

    After doing everything above, I still got errors. My problem ended up being that the Swift files I needed weren't added to the bundle resources for some reason.

    I fixed this by going to [MyTarget] > Build Phases > Copy Bundle Resources, then clicked the plus button and added the Swift files.

    0 讨论(0)
提交回复
热议问题