在线时间:8:00-16:00
132-9538-2358
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
我复制了一个目标并获得以下构建错误: Resource/Prefix.pch:16:13: '<moduleName>-Swift.h' file not found 我看不出会导致这个问题的两个目标之间有什么区别。 任何想法为什么会这样? I duplicated a target and get the following build error: Resource/Prefix.pch:16:13: '<moduleName>-Swift.h' file not found I can't see any difference between the two targets that would cause this problem. Any ideas why this is happening?原文:https://stackoverflow.com/questions/31150335
我复制了一个目标并获得以下构建错误:
Resource/Prefix.pch:16:13: '<moduleName>-Swift.h' file not found
我看不出会导致这个问题的两个目标之间有什么区别。
任何想法为什么会这样?
I duplicated a target and get the following build error:
I can't see any difference between the two targets that would cause this problem.
Any ideas why this is happening?
问题是重复的目标具有不同的moduleName 。 我必须在重复的目标中添加一个C标志,并在Prefix.pch使用它。 (解析pch文件时,不会看到用户定义的设置。) #ifdef DEVLOPMENT_SERVER #import "<duplicateModuleName>-Swift.h" #else #import "<moduleName>-Swift.h" #endif The problem is that the duplicate target has a different moduleName. I had to add a C-flag in the duplicate target and use this in Prefix.pch. (A User-Defined Setting doesn't get seen when parsing the pch file.) #ifdef DEVLOPMENT_SERVER #import "<duplicateModuleName>-Swift.h" #else #import "<moduleName>-Swift.h" #endif
问题是重复的目标具有不同的moduleName 。
moduleName
我必须在重复的目标中添加一个C标志,并在Prefix.pch使用它。 (解析pch文件时,不会看到用户定义的设置。)
Prefix.pch
#ifdef DEVLOPMENT_SERVER #import "<duplicateModuleName>-Swift.h" #else #import "<moduleName>-Swift.h" #endif
The problem is that the duplicate target has a different moduleName.
I had to add a C-flag in the duplicate target and use this in Prefix.pch. (A User-Defined Setting doesn't get seen when parsing the pch file.)
评论
请发表评论