问题描述
我尝试执行问题中描述的任务,但失败了.重现步骤:
I tried to implement the task described in the question but fails. Steps to reproduce:
- 创建新的工作区'WS'
- 创建新的Cocoa Touch框架
- 在为新项目选择选项:"窗口中设置产品名称:" =产品".保持其他输入自动生成.
- 在下一个向导窗口中,设置添加到:" = WS.
- Create new workspace 'WS'
- Create new Cocoa Touch Framework
- set 'Product Name:' = 'Product' in 'Choose options for your new project:' window. Keep other inputs auto-generated.
- in next wizard window set 'Add to:' = WS.
结果是错误:没有这样的模块'Module'.
The result is an error: No such module 'Module'.
我尝试了很多事情来做,但是没有任何帮助.对于我来说,所描述的情况是正确的.
怎么了?
我该怎么办?
I tried many things to do it but nothing helps.As for me, the described scenario is correct.
What is wrong?
How I can do it?
我的Xcode版本= 10.3(10G8)
My Xcode version = 10.3 (10G8)
推荐答案
我尝试在Xcode 11.2.1
上重现此行为,并且工作正常.我认为,一旦在Product
Target中添加至少1个Swift文件,也可以为您解决此问题.这是我的Github存储库,显示已解决的问题. https://github.com/tapthaker/TestProductNameChange/
I tried reproducing this behavior on Xcode 11.2.1
and it works fine. I think this could be resolved for you too once you add at least 1 Swift file in the Product
Target. Here is my Github repo that shows the problem resolved. https://github.com/tapthaker/TestProductNameChange/
这篇关于如何创建具有不同“产品模块名称"和“产品名称"的项目并将其模块导入另一个项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!