Tag: cocoapods

错误ITMS-90206无效的包包含不允许的文件“Frameworks”

我有一个问题上传我的应用程序进入商店通过Xcode,特别是这一个。 我看到很多关于这个错误的post,但都是在谈论Extension App ,我不使用。 我正在使用Custom framework和Cocoapods 。 你可以在这里看到我的树: XXX是我的项目应用程序名称 SharedXXX是我的custom framework 豆荚是由cocoa pods创build的项目 这是我的cocoapodFile : use_frameworks! link_with 'XXX', 'SharedXXX' source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.1' workspace 'XXX' xcodeproj 'XXX/XXX.xcodeproj' xcodeproj 'Shared/SharedXXX.xcodeproj' def default_pods pod 'Reveal-iOS-SDK', :configurations => ['Debug'] pod "SnapKit", '~> 0.17.0' pod "DKChainableAnimationKit", '~> 1.6.0' pod "AsyncSwift" end def shared_pods pod "Alamofire", '~> 3.0' pod […]

Xcode 7.3debugging器不显示自定义类variables

我最近更新到Xcode 7.3,但是在断点debugging时,对象显示在debugging区域,但点击三angular形显示variables什么也不做。 我从来没有与Xcode 7.2这样的问题。 我的项目中还有一个Cocoa-Pod Facebook Pop库(与其相关)。 自升级到Xcode 7.3以来,我已经更新了它。 更新: 更具体地说,我不能展开自定义的类variables,但像NSRange这样的variables做展开来显示位置和长度,但是我不能展开我自定义的ViewController类等。

Cocoapods没有这样的文件加载错误

我正在尝试添加一个窗格到我的xcode项目中。 我得到这个错误: LoadError – 没有这样的文件加载 – 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/ gem_original_require' /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 / gem_original_require' /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 / gem_original_require' /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 / gem_original_require' /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in / 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 kernel_require.rb: gem_original_require' /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in in gem_original_require' /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in -0.14.0 / lib […]

CocoaPods与XCode 6.0.1 – 我如何解决出现在红色豆荚框架?

我在Xcode 6.0.1中创build了一个新项目并创build了下面的Podfile: source 'https://github.com/CocoaPods/Specs' platform :ios, '8.0' pod 'AFNetworking', '~> 2.0' 然后我运行pod install ,并在Xcode中打开xcworkspace。 当我构build项目时,所有的框架都显示为红色。 例如,在Pods项目下,Foundation.framework显示为红色,并指向我的计算机上不存在的path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/Foundation.framework 我的问题是: 如何让框架在导航器中显示为黑色,并将我的窗格正确链接到我的主项目? 我在这个问题的答案中提到了一些变化: 最初,libpods.a产品也以红色出现。 我解决了这个问题,通过阅读别人修正他们的问题后,将每个configuration构build产品path更改$(BUILD_DIR)/$(CONFIGURATION) 。 我已经确定我的基本SDK是在我能find的所有目标上的iOS 8.0。 我已经validation了我的有效架构被设置为“arm64 armv7 armv7.1”,可以find所有的目标。

Alamofire Xcode 8 Swift 3导致786编译错误

我正在使用Xcode 8.0 GM。 我创build了一个默认的单视图应用程序,部署目标设置为9.0。 在我的Podfile中,我瞄准了Swift 3分支: source 'https://github.com/CocoaPods/Specs.git' platform :ios, '9.0' use_frameworks! target 'MyProject' do pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :branch => 'swift3' end 我运行pod install并得到… Installing Alamofire (4.0.0-beta.2) …太棒了,没有问题。 我打开MyProject.xcworkspace 。 这popup: 我以后不能打,因为它告诉我: Xcode 8将无法构build目标“Alamofire”,并且某些编辑function将无法正常工作,直到该目标中的Swift源代码已被转换。 这不好,我想要build立它。 所以我打了“转换”。 它给了我select: 那就是我想要的,Swift 3.看起来不错,我打了“下一个”。 它默认为这3个选定的目标。 好,我打了下。 上帝的圣名叫什么 我想在Xcode 8上使用Alamofire的swift3出血边缘分支,针对iOS 9.0的Swift 3项目。 我哪里出了问题,我怎么才能做到这一点? FWIW我得到一堆错误,试图使用Alamofire的Swift 2.3分支,所以我知道这是我做错了什么。

本地化和CocoaPods

我有一个使用CocoaPods的项目。 因此,我有一个包含两个项目的工作区:mine和Pods。 豆荚包含我想本地化的代码,并且我在豆荚中创build了.strings文件。 但是, NSLocalizedString无法加载这些string。 我怀疑会发生这种情况,因为.strings文件不在主包中,但没有Pod包,因为它被编译到静态库中。 有没有比在我的主要项目中更好地本地化CocoaPods项目中的代码?

没有为CocoaPods目标定义DEBUG预处理macros

我遇到了一个叫DCIntrospect-ARC的问题,只能在DEBUG模式下工作。 它检查运行前是否定义了DEBUGmacros。 然而,它没有在CocoaPods目标中定义,即使我在Xcode中以debugging模式运行,它也无法运行,因为DEBUGmacros没有定义。 我可以在podspec中使用定义DEBUGmacros s.xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => '$(inherited) DEBUG=1' } 但是这个定义了所有构buildconfiguration的DEBUG,而不仅仅是DEBUGconfiguration。 这是一个CocoaPods的问题? 一般不应该为豆荚定义DEBUGmacros? 我可以在Podspec文件中解决这个问题,只在debugging版本configuration中声明DEBUGmacros吗?

错误:安装cocoapods错误:错误:无法构buildgem本机扩展

我想安装cocoapods到我的macbook pro运行OSX 10.9.1(新的小牛)和types的gem install cocoapods我得到以下错误: Building native extensions. This could take a while… ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension. "/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby" -rubygems /usr/local/rvm/gems/ruby-1.9.3-p194/gems/rake-10.1.1/bin/rake RUBYARCHDIR=/Users/rangreenberg/gems/gems/xcodeproj-0.14.1/ext RUBYLIBDIR=/Users/rangreenberg/gems/gems/xcodeproj-0.14.1/ext /usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb checking for -std=c99 option to compiler… *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or […]

将运行脚本构build阶段添加到来自podspec的Xcode项目中

我正在为我的库编写Cocoapods规范,它必须修改Xcode项目,并将“运行脚本构build阶段”添加到项目的目标。 我以为我可以使用post_install挂钩。 但是“ pod spec lint ”说这个钩子已经被弃用了: – WARN | [iOS] The post install hook of the specification DSL has been deprecated, use the `resource_bundles` or the `prepare_command` attributes. 我不知道如何用* resource_bundles *或* prepare_command *replacepost_install钩子。 谁知道解决我的问题的其他方法? 可能吗? 而另一个问题是如何修改Xcode项目来添加构build阶段,但只有解决了“post_hook问题”时才是实际的。

AFNetworking与iOS 4.3不兼容

我正在使用CocoaPods来安装AFNetworking库。 这是我简单的CocoaPods文件: platform :ios pod 'FMDB' pod 'AFNetworking' My Pods项目和我的主项目是iOS 6的部署目标和基础SDK。 当我运行pod安装时,出现以下错误: AFNetworking not compatible with iOS 4.3 更新: 我编辑我的Podfile到这个: platform :ios, '6.0' pod 'FMDB' pod 'AFNetworking' 现在,当我运行pod安装时,显示如下: 更新spec repo`master' Cocoapods 0.15.1是可利用的。 使用AFNetworking(1.0)使用FMDB(2.0)生成支持文件 但是它永远不会将AFNetworking pod添加到xCode中的pod项目中。