框架VS CocoaPod库

时间:2015-07-17 18:39:29

标签: ios xcode parse-platform cocoapods

已修复 - 修正了它。有一个Parse Pods库,为Pods文件添加了框架,并从项目目录中删除了Parse Framework,现在我可以在两者中使用它了

所以我无法访问Cocoapod网站中未列出的框架,我正在修改一个开源项目,我正在通过Cocoapods安装开源项目,所以开源项目列在Pods Directory。

我无法在没有错误的情况下在我的开源文件中导入Parse框架,但我可以在项目目录文件中将其导入。从不断的篡改中,我把它煮成了我发现的一些模式。

1) I can import frameworks in my open source files that are already
included by default in xcode like AVFoundation.framework,
Accounts.framework, or Security.framework

2) I can import third party frameworks in my open source file like
Bolts only when they're listed in Cocoapods

3) I can't access the Parse framework in my open source file even if
it's linked/listed under "Build Phases" ==> "Link Binary With
Libraries" (Relative to Group is checked) Again, I can access the
framework in my own project directory but not in my open source
files listed under the Pods Directory. I can't find the Parse
framework in Cocoapods

4) I have found the ParseUI framework in Cocoapods so I've included
that in my Podfile but since ParseUI is listed in Cocoapods but not
the Parse framework itself I'm guessing when I import ParseUI to my
file, it's dynamically linking to the Parse framework but dynamic
linking supposedly isn't good and Apple won't support it now? So I
can't run my app without an 

    no such file or directory: 'dynamic_lookup'

5) Bolts Framework was created by Parse and Facebook (As 
   is Parse and ParseUI) I can import Bolts fine in both 
   files in my open source and project directory....
   so it can't be a problem with third party frameworks 

所以我得出的结论是Frameworks和Cocoapods之间可能存在差异,我怎样才能获得Parse Framework的Pods版本......除非我的逻辑不正确且它们是相同的...... .haha ..

1 个答案:

答案 0 :(得分:0)

修正了它。有一个Parse Pods库,为Pods文件添加了框架,并从项目目录中删除了Parse Framework,现在我可以在两者中使用它了

所以我无法访问Cocoapod网站中未列出的框架,我正在修改一个开源项目,我正在通过Cocoapods安装开源项目,所以开源项目列在Pods Directory。