当前位置:网站首页>Swift import third-party library reports an error no such module““

Swift import third-party library reports an error no such module““

2022-04-23 21:45:00 xinlingdezhuangyuan

One of the situations : No bridge file added

  1. stay Swift Create a new project under the project main directory OC class , If the project is created for the first time OC class , Whether to create... Will pop up Swift-OC Pop up prompt of bridging file , Click on Create Bridging Header Button to create
  2. Manually create the bridge file , namely Header file , Random names . After the creation is completed, the project target Under the build setting -> Swift Compiler-General ->Objective-C Bridging Header Set the directory of the files created above , Path composition format : Project name /Header Folder name /Header file name

版权声明
本文为[xinlingdezhuangyuan]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204200616472128.html