cocoapods

Xcode 8 - Missing Files warnings

本小妞迷上赌 提交于 2019-12-17 10:15:28
问题 Ever since upgrading to Xcode 8 using Swift 2.3 I have several missing files warnings. They are all related to pods that I am using. The files that are missing are *.xcscheme *.cpp *.xcuserstate *.swift The pods that are showing missing files are Realm (~38 of 43) TextFieldEffects (~3 of 43) BEMCheckBox (2 of 43) How do I fix this issue? 回答1: This is just an Xcode bug. If you delete or rename a file without then doing a commit, Xcode sees the discrepancy between the previous git commit and

Error: ld: library not found for -lPods with CocoaPods

和自甴很熟 提交于 2019-12-17 07:26:11
问题 after i installed DTCoreText (https://github.com/Cocoanetics/DTCoreText) with Cocoapods i always get an error when i try to run the simulator or device! ld: warning: directory not found for option '-L/Users/example/Desktop/ios/Pods/build/Release-iphoneos' ld: warning: directory not found for option '-L/Users/example/Desktop/ios/Pods/build/Debug-iphoneos' ld: library not found for -lPods-example clang: error: linker command failed with exit code 1 (use -v to see invocation) in my "Link Binary

Error: ld: library not found for -lPods with CocoaPods

坚强是说给别人听的谎言 提交于 2019-12-17 07:26:08
问题 after i installed DTCoreText (https://github.com/Cocoanetics/DTCoreText) with Cocoapods i always get an error when i try to run the simulator or device! ld: warning: directory not found for option '-L/Users/example/Desktop/ios/Pods/build/Release-iphoneos' ld: warning: directory not found for option '-L/Users/example/Desktop/ios/Pods/build/Debug-iphoneos' ld: library not found for -lPods-example clang: error: linker command failed with exit code 1 (use -v to see invocation) in my "Link Binary

pod install -bash: pod: command not found

拟墨画扇 提交于 2019-12-17 07:02:26
问题 I installed pod some time ago. However, it's stopped working so I'm working through this again. However, I almost immediately run into a problem here: pod install -bash: pod: command not found Any suggestions why this happened? 回答1: OK, found the problem. I upgraded Ruby some time ago and blasted away a whole load of gems. Solution: sudo gem install cocoapods 回答2: Installing CocoaPods on OS X 10.11 These instructions were tested on all betas and the final release of El Capitan. Custom GEM

What goes into your .gitignore if you're using CocoaPods?

三世轮回 提交于 2019-12-17 06:58:05
问题 I've been doing iOS development for a couple of months now and just learned of the promising CocoaPods library for dependency management. I tried it out on a personal project: added a dependency to Kiwi to my Podfile, ran pod install CocoaPodsTest.xcodeproj , and voila , it worked great. The only thing I'm left wondering is: what do I check in, and what do I ignore for version control? It seems obvious that I want to check in the Podfile itself, and probably the .xcworkspace file as well; but

How does CocoaPods work

落花浮王杯 提交于 2019-12-17 05:13:44
问题 I used CocoaPods for some of my projects. It's cool and easy to keep updated with my dependencies/open source frameworks. But I have some doubts regarding the inner workings of CocoaPods. In our Podfile we are giving only the the name of pods, sometimes the version also,like pod "AFNetworking" , "1.3.2" Then it correctly finds and clones the AFNetworking repo. How this is work? How the ruby gems know the actual repository is in Github. Are pods work with Github only? (Because I saw pods for

How does CocoaPods work

天大地大妈咪最大 提交于 2019-12-17 05:13:19
问题 I used CocoaPods for some of my projects. It's cool and easy to keep updated with my dependencies/open source frameworks. But I have some doubts regarding the inner workings of CocoaPods. In our Podfile we are giving only the the name of pods, sometimes the version also,like pod "AFNetworking" , "1.3.2" Then it correctly finds and clones the AFNetworking repo. How this is work? How the ruby gems know the actual repository is in Github. Are pods work with Github only? (Because I saw pods for

Error: “The sandbox is not in sync with the Podfile.lock…” after installing RestKit with cocoapods

半世苍凉 提交于 2019-12-17 04:39:24
问题 I've encounter an strange issue after installing RestKit with cocoapods. after resolving RestKit dependency for my project with cocoapods and trying to build it, I face this error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation. I tried running pod install , but no change. Here are some shots: PODS: - AFNetworking (1.3.3) - RestKit (0.20.3): - RestKit/Core - RestKit/Core (0.20.3): - RestKit/CoreData - RestKit/Network - RestKit

Update RestKit 'lcl_RK.h' file not found in RKLog.h

爱⌒轻易说出口 提交于 2019-12-17 04:07:17
问题 I install RestKit v0.25.0 with CocoaPods v0.39 in Xcode 7.1 and have problem with imports. When I used CocoaPods v0.38.2 everything was amazing. "RKHTTPUtilities.h" file not found. It solves after set recursive in headers search path for "${PODS_ROOT}/Headers/Public/RestKit". But I get this error 'lcl_RK.h' file not found in RKLog.h. I also try do this. 回答1: I found only one not the best way. Add "$(PODS_ROOT)/RestKit/Vendor/LibComponentLogging/Core" in headers search path for project target.

Podfile中的 use_frameworks!

旧街凉风 提交于 2019-12-16 22:47:26
use_frameworks! A、用cocoapods 导入swift 框架 到 swift项目和OC项目都必须要 use_frameworks! B、使用 dynamic frameworks,必须要在Podfile文件中添加 use_frameworks! (1)如果在Podfile文件里不使用 use_frameworks! 则是会生成相应的 .a文件(静态链接库),通过 static libraries 这个方式来管理pod的代码。 (2)Linked:libPods-xxx.a包含了其它用pod导入的第三方框架的.a文件。 (3)如果使用了use_frameworks! 则cocoapods 会生成相应的 .frameworks文件(动态链接库:实际内容为 Header + 动态链接库 + 资源文件),使用 dynamic frameworks 来取代 static libraries 方式。 (4)Linked:Pods_xxx.framework包含了其它用pod导入的第三方框架的.framework文件。 use_frameworks! -> dynamic frameworks 方式 -> .framework #use_frameworks! -> static libraries 方式 -> .a 关于Library 和 Framework 可以参考: