在OS框架的构建过程中,我有一个Copy Files构建步骤,它将两个包复制到PlugIns目的地。
当我查看构建的框架时,它们最终出现在Framework/Versions/A/Resources中。
构建过程中的相关步骤:
/Users/nephilim/Library/Developer/Xcode/DerivedData/Graphing_Fun-egwutjdrujbsecgqukeyejeljxoo/Build/Products/Debug/GPHPieChart.bundle /Users/nephilim/Library/Developer/Xcode/DerivedData/Graphing_Fun-egwutjdrujbsecgqukeyejeljxoo/Build/Products/Debug/Grapher.framework/Versions/A/Resources/GPHPieChart.bundle cd“/ PBXCp /nephilim/PBXCp/PBXCp项目/绘图乐趣”内置-复制-exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -PBXCp-src/Users/nephilim/Library/Developer/Xcode/DerivedData/Graphing_Fun-egwutjdrujbsecgqukeyejeljxoo/Build/Products/Debug/GPHPieChart.bundle /Users/nephilim/Library/Developer/Xcode/DerivedData/Graphing_Fun-egwutjdrujbsecgqukeyejeljxoo/Build/Products/Debug/Grapher.framework/Versions/A/Resources -symlinks
当我运行下面的代码时,我得到了文件夹Framework/Plugins:
[[NSBundle bundleForClass:[self class]] builtInPlugInsPath]因此,我不能用这种方式使用插件。这是一个预期的结果,还是一个错误?
上下文:我希望尽可能基本地构建我的框架,并随着时间的推移用插件来扩展它。
发布于 2014-01-04 14:05:52
更新
我尝试使用"PlugIns“作为复制文件阶段的目标,但它似乎不起作用,使用”包装器“作为目标,以"PlugIns”作为子路径。

先前的答案
将复制文件阶段更改为将插件复制到插件路径.

https://stackoverflow.com/questions/20921670
复制相似问题