简体   繁体   English

如何在不使用静态库的情况下将xcode项目中的资源共享到工作区中的其他xcode项目中?

[英]How to share resources from xcode project into other xcode project within a workspace with out using static library?

I am currently working with workspace,i have multiple projects within a workspace and firstly, i want to add a file/any resources/framework which is present in one xcode project to other projects within the workspace. 我目前正在使用工作区,我在一个工作区中有多个项目,首先,我想将一个xcode项目中存在的文件/任何资源/框架添加到工作区中的其他项目。 Is there any other way to share resources to other project with out using static library? 还有其他方法可以不使用静态库而将资源共享给其他项目吗?

and secondly, i want to know how to run multiple schemes within a target in workspace? 其次,我想知道如何在工作空间中的目标内运行多个方案?

thank you. 谢谢。

To share a file or a resource between two different workspace, you can add it to your project and uncheck the option "Copy resource to project". 要在两个不同的工作空间之间共享文件或资源,可以将其添加到项目中,然后取消选中“将资源复制到项目”选项。 In these way the file'll not be moved from the original position in the filesystem, and it can be added to 2 different project. 这样,文件就不会从文件系统中的原始位置移动,而是可以添加到2个不同的项目中。

Well, you can try working with "source trees": In Xcode go to menu Xcode -> Preferences -> Locations > Source Trees! 好吧,您可以尝试使用“源树”:在Xcode中,转到菜单Xcode->首选项->位置>源树! see Source Trees Preferences Help . 请参阅“ 源树首选项帮助”

Running multiple schemes is also easy! 运行多个方案也很容易! Duplicate and rename a existing one and re-configure it as you need! 复制并重命名现有的一个,然后根据需要重新配置它! Then in your targets build settings you can specify different settings for different schemes where appropriate! 然后,在目标构建设置中,您可以在适当的情况下为不同的方案指定不同的设置!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM