I followed this tutorial and also this video to create my custom framework. Once I build it for the simulator version/or both simulator and device, I would like to add this to my project. I just drag and drop it to project:
我按照本教程和本视频来创建自定义框架。一旦我为模拟器版本/或模拟器和设备构建它,我想将其添加到我的项目中。我只需将其拖放到项目中:
My PersonFramework within project navigator:
我在项目导航器中的PersonFramework:
Target membership for my PersonFramework:
我的PersonFramework的目标成员资格:
Linked Frameworks for my App target.
我的应用目标的链接框架。
And finally my try to import this to the project:
最后我尝试将其导入项目:
No such module
PersonFramework
.没有这样的模块PersonFramework。
What am I doing wrong?
我究竟做错了什么?
2 个解决方案
#1
2
Close the Xcode.
关闭Xcode。
Go into user(you)/Library/Developer/Xcode/DerivedData and delete the folder contents.
进入用户(您)/ Library / Developer / Xcode / DerivedData并删除文件夹内容。
If you have a build of you app in a running simulator you'll need to also delete the build folders.
如果您在正在运行的模拟器中构建了应用程序,则还需要删除构建文件夹。
Reopen the Xcode. Clean & Build.
重新打开Xcode。清洁和建设。
#2
1
FRAMEWORK_SEARCH_PATHS
build setting needs to point to the location of the framework.
FRAMEWORK_SEARCH_PATHS构建设置需要指向框架的位置。
#1
2
Close the Xcode.
关闭Xcode。
Go into user(you)/Library/Developer/Xcode/DerivedData and delete the folder contents.
进入用户(您)/ Library / Developer / Xcode / DerivedData并删除文件夹内容。
If you have a build of you app in a running simulator you'll need to also delete the build folders.
如果您在正在运行的模拟器中构建了应用程序,则还需要删除构建文件夹。
Reopen the Xcode. Clean & Build.
重新打开Xcode。清洁和建设。
#2
1
FRAMEWORK_SEARCH_PATHS
build setting needs to point to the location of the framework.
FRAMEWORK_SEARCH_PATHS构建设置需要指向框架的位置。