cocoapods

cocoapods安装速度慢,CDN: trunk Repo update failed等问题

人盡茶涼 提交于 2019-12-18 14:31:10
1、在安装cocoapods时候,pod setup停留的时间太长了,这时候就建议使用国内的景象,速度妥妥的快的不行啊,哈哈哈 我使用的是清华的镜像,详细步骤看这个网址 CocoaPods 镜像使用帮助 2、由于项目是用CocoaPods管理,CocoaPods 1.8将CDN切换为默认的spec repo源,并附带一些增强功能!CDN支持最初是在1.7版本中引入的,最终在1.7.2中完成。 它旨在大大加快初始设置和依赖性分析。 在使用的时候出现 [!] CDN: trunk Repo update failed - 7 error(s): CDN: trunk URL couldn't be downloaded: 按照官方文档 podfile文件中添加source源: source 'https://github.com/CocoaPods/Specs.git' podfile文件中添加source源后, pod install 和 pod update 可以正常操作,但是 pod search 有些库却不正常。 因为我使用的是清华的,所以我这里要写清华提供的方法 source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git' 解决办法: 1. podfile文件中指定source源为master:

Making a CocoaPod from an existing Xcode project

我怕爱的太早我们不能终老 提交于 2019-12-18 14:11:05
问题 I've been trying to crack this with no avail so far. I have my Xcode Swift project with its github repository for source control. I would like to create a new CocoaPod with this project. Ive gone through the CocoaPods documentation but nothing has worked as of yet and Im really confused by now, could someone please write the steps in order I need to do for making that new pod from my existing Xcode Project which already has a Github repository linked to it. Thanks in advance! 回答1: Taken from

No such module … in Xcode

你离开我真会死。 提交于 2019-12-18 13:12:28
问题 I've run into a problem with Xcode (using Swift) that has me completely stumped. I realize that this question has been asked and answered, but none of the answers have worked for me, and my situation seems to be a bit different than the others, as all of my pods are failing (not just a specific one). They all worked fine a week ago. I use Cocoapods for some of the more common Swift frameworks (e.g. Alamofire, Eureka, Kingfisher, SwiftyJSON, etc.). They were all working fine in Xcode 7.

Cocoapods use_frameworks! import issue

白昼怎懂夜的黑 提交于 2019-12-18 12:48:16
问题 I want to use some Swift pods in my Objective-C app, so I need to use frameworks instead of static libraries. But enabling use_frameworks! in my Podfile causes tones of #import errors. My Podfile: platform :ios, '8.0' use_frameworks! pod 'AFNetworking', '2.6.0' pod 'Typhoon' pod 'SSKeychain' pod 'JBWebViewController' pod 'TTTAttributedLabel' pod 'HockeySDK' pod 'GoogleAnalytics' pod 'Intercom' pod 'FBSDKCoreKit' pod 'FBSDKLoginKit' pod 'UIButton+Activity' pod 'HexColors' pod

Xcode 10.2 Update issue Build system error -1: Unable to load contents of file list: input/output xcfilelist

☆樱花仙子☆ 提交于 2019-12-18 12:45:33
问题 After upgrading to Xcode 10.2 I am getting 2 errors :-1: Unable to load contents of file list: 'xxxxx/Pods/Target Support Files/Pods-xxxx/Pods-xxxxx-frameworks-Debug-input-files.xcfilelist' (in target 'xxxxx') :-1: Unable to load contents of file list: 'xxxxx/Pods/Target Support Files/Pods-xxxxx/Pods-xxxxx-frameworks-Debug-output-files.xcfilelist' (in target 'xxxxx') I updated all my pod and changed build system to "Legacy Build System" but still getting the same build error 回答1: I struggled

Swift Version NativeScript

佐手、 提交于 2019-12-18 12:38:59
问题 Using NativeScript how can I run a project under iOS? I get these messages when I run tns run iOS --bundle Webpack compilation complete. Watching for file changes. Webpack build done! Copying template files... Platform ios successfully added. v4.2.0 Executing before-shouldPrepare hook from /Users/Zian/Documents/Projects/NativeScript/Hybrid/hooks/before-shouldPrepare/nativescript-dev-webpack.js Preparing project... Executing before-prepareJSApp hook from /Users/Zian/Documents/Projects

pod install returns fatal error: SSL certificate issue?

牧云@^-^@ 提交于 2019-12-18 12:31:55
问题 I just installed CocoaPods by following these instructions: Now I opened an Xcode project which has CocoaPods in it, I opened the terminal, went into that project folder and typed "pod install" as required, and I am getting an error back: $ pod install Setting up CocoaPods master repo [!] Pod::Executable clone 'https://github.com/CocoaPods/Specs.git' master Cloning into 'master'... fatal: unable to access 'https://github.com/CocoaPods/Specs.git/': SSL certificate problem: Invalid certificate

Apple Mach -O Linker (Id) Error?

眉间皱痕 提交于 2019-12-18 12:19:07
问题 I am trying to build this xcode workspace which was built from Unity. And after modifying the project a little bit when I getting to the very end of building the project (linking) I get the Apple Mach -O Linker (Id) Error. I can't open the error tab to see what exactly is causing the error. All it says is "Linker command failed with exit code 1 (use -v to see invocation). There are also two Apple Mach -O Linker (Id) Errors which occur but I have no idea how to solve them. Any help is greatly

Invalid Bundle, The bundle contains disallowed nested bundles, contains disallowed file 'Frameworks'

蹲街弑〆低调 提交于 2019-12-18 12:13:45
问题 I added a shared framework to share code between app and watch extension. Later I removed the shared framework since it cause lots of problems. I can build and run my app on iphone and watch. However when I submit to app store, I see these two errors: ERROR ITMS-90205: "Invalid Bundle. The bundle at 'xxx WatchKit Extension.appex' contains disallowed nested bundles." ERROR ITMS-90206: "Invalid Bundle. The bundle at 'xxx WatchKit Extension.appex' contains disallowed file 'Frameworks'." I have

Cocoapods No such file to load Error

心不动则不痛 提交于 2019-12-18 12:13:08
问题 I am trying to add a pod to my xcode project. I am getting this error: LoadError - no such file to load -- xcodeproj/prebuilt/universal-darwin13.0-1.8.7/xcodeproj_ext /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in gem_original_require' /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in require' /Library/Ruby/Gems/1.8/gems/xcodeproj-0.14.0/lib/xcodeproj/ext.rb:6 /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in gem_original_require' /Library/Ruby