我正在从一个git repo克隆一个项目,但是当我执行pod install第一行时,我看到的是"设置CocoaPods主仓库",之后我再也看不到了,控制台就停在那里了.
我不知道发生了什么.谁知道这里发生了什么?为什么CocoaPods停在那里?
我已经合并SpatialIite到一个Xcode项目中,该项目使用头文件Proj.4,只有一个头文件.两者都是Xcode项目并具有静态目标.
我正在尝试从git子模块迁移到Cocoapods.由于静态目标似乎很难与Cocoapods一起使用,我只想以通常的方式构建项目.我做了podspec Proj.4.写完podfile之后SpatialLite我收到了警告:
[!] The target `SpatialiteIOS [Debug]` overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Pods.xcconfig'.
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The target `SpatialiteIOS [Debug]` overrides the `HEADER_SEARCH_PATHS` build setting defined in `Pods/Pods.xcconfig'.
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
[!] The target `SpatialiteIOS [Debug - Release]` overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Pods.xcconfig'.
- …Run Code Online (Sandbox Code Playgroud) 用cocopods安装RestKit后,我遇到了一个奇怪的问题.在使用cocopods为我的项目解析RestKit依赖项并尝试构建它之后,我遇到了这个错误:
PODS:
- AFNetworking (1.3.3)
- RestKit (0.20.3):
- RestKit/Core
- RestKit/Core (0.20.3):
- RestKit/CoreData
- RestKit/Network
- RestKit/ObjectMapping
- RestKit/CoreData (0.20.3)
- RestKit/Network (0.20.3):
- AFNetworking (~> 1.3.0)
- RestKit/ObjectMapping
- RestKit/Support
- SOCKit
- RestKit/ObjectMapping (0.20.3)
- RestKit/Search (0.20.3):
- RestKit/CoreData
- RestKit/Support (0.20.3):
- TransitionKit (= 1.1.1)
- RestKit/Testing (0.20.3)
- SOCKit (1.1)
- TransitionKit (1.1.1)
DEPENDENCIES:
- RestKit (~> 0.20.0)
- RestKit/Search (~> 0.20.0)
- RestKit/Testing (~> 0.20.0)
SPEC CHECKSUMS:
AFNetworking: 61fdd49e2ffe6380378df37b3b6e70630bb9dd66
RestKit: 1f181c180105a92f11ec4f6cd7de37625e516d83
SOCKit: 2f3bc4d07910de12dcc202815e07db68a3802581 …Run Code Online (Sandbox Code Playgroud) 我正在尝试为我的IOS项目添加一个框架,但是当我构建时,我总是得到相同的消息:
ld:框架未找到Pods
clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)
我试图删除我的Pods目录,然后运行pod install
我打开.xcworkspace就像它写在pod安装的日志中,我清理xcode上的项目,然后尝试构建,但它将无法正常工作..
我的podfile看起来像这样:
xcodeproj '/Users/guillaume/project/Mobile/iOS/FoodPin/FoodPin.xcodeproj'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'SwiftHTTP', '~> 0.9.2'
Run Code Online (Sandbox Code Playgroud)
我的xcode版本是 6.3.1
谢谢,
任何人都可以帮我解决下面的堆栈跟踪中的错误吗?当我运行任何pod命令时会发生这种情况 我已经卸载并重新安装了宝石而没有运气.
00:44:05-David~/dev/farecast-app (master)$ pod setup
Setting up CocoaPods master repo
/usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/pathname.rb:422:in `open': No such file or directory @ dir_initialize - /Users/David/.cocoapods/repos (Errno::ENOENT)
from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/pathname.rb:422:in `foreach'
from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/pathname.rb:422:in `children'
from /usr/local/rvm/gems/ruby-2.1.0/gems/cocoapods-0.34.4/lib/cocoapods/sources_manager.rb:63:in `all'
from /usr/local/rvm/gems/ruby-2.1.0/gems/cocoapods-0.34.4/lib/cocoapods/user_interface/error_report.rb:127:in `repo_information'
from /usr/local/rvm/gems/ruby-2.1.0/gems/cocoapods-0.34.4/lib/cocoapods/user_interface/error_report.rb:34:in `report'
from /usr/local/rvm/gems/ruby-2.1.0/gems/cocoapods-0.34.4/lib/cocoapods/command.rb:63:in `report_error'
from /usr/local/rvm/gems/ruby-2.1.0@global/gems/claide-0.7.0/lib/claide/command.rb:300:in `handle_exception'
from /usr/local/rvm/gems/ruby-2.1.0@global/gems/claide-0.7.0/lib/claide/command.rb:274:in `rescue in run'
from /usr/local/rvm/gems/ruby-2.1.0@global/gems/claide-0.7.0/lib/claide/command.rb:264:in `run'
from /usr/local/rvm/gems/ruby-2.1.0/gems/cocoapods-0.34.4/lib/cocoapods/command.rb:50:in `run'
from /usr/local/rvm/gems/ruby-2.1.0/gems/cocoapods-0.34.4/bin/pod:33:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.1.0/bin/pod:23:in `load'
from /usr/local/rvm/gems/ruby-2.1.0/bin/pod:23:in `<main>'
from /usr/local/rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `eval'
from /usr/local/rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `<main>'
Run Code Online (Sandbox Code Playgroud)
更新:修正了@ KeithSmiley的建议.
每次从CocoaPods导入文件时,我都会收到Apple Mach-O链接器错误.
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_FBSession", referenced from: someFile
ld: symbol(s) not found for architecture arm64
Run Code Online (Sandbox Code Playgroud)
对于我使用的各种Pod,我得到了大约12个.
我正在尝试使用XCode 5为iPhone 5S构建.
我一直在尝试使用SO的各种解决方案,但还没有任何解决方案.
如何修复Apple Mach-O链接器错误?
刚发现另一个可能有趣的警告,我希望这能引导我找到解决方案:
Ignoring file ~/Library/Developer/Xcode/DerivedData/SomeApp/Build/Products/Debug-iphoneos/libPods.a,
Run Code Online (Sandbox Code Playgroud)
file was built for archive which is not the architecture being linked (arm64):~/Library/Developer/Xcode/DerivedData/someApp/Build/Products/Debug-iphoneos/libPods.a
我pod前段时间安装过.然而,它停止工作,所以我通过工作这一次.
但是,我几乎立刻遇到了一个问题:
pod install
-bash: pod: command not found
Run Code Online (Sandbox Code Playgroud)
有什么建议为什么会这样?
我知道以下命令将更新单个pod : pod update <podname>. 但是,这也会更新您之前安装的其他pod(未包含在update命令中的pod)的依赖关系.有没有办法更新单个pod并保留所有其他依赖项?
我有一个使用CocoaPods的iOS项目.一切都在顺利进行,直到另一位开发人员开始在同一个项目上工作.他做了一些更改(据我所知只对代码)并在回购中创建了一个新的分支.我检查了他的分支并尝试构建它,但是我收到一个错误:找不到ASLogger/ASLogger.h文件.
即使我删除了整个项目并制作了新的副本并使用"pods install".构建失败仍然存在.你知道问题出在哪里吗?如果您需要更多信息,请询问.
我无法构建使用CocoaPods的项目.我收到以下错误:
diff: /../Podfile.lock: No such file or directory
diff: Manifest.lock: No such file or directory error:
The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.`
Run Code Online (Sandbox Code Playgroud)
$ pod install似乎工作正常,并将一个Pods项目添加到我的工作区.我试过$ pod update但这没有用.
似乎PODS_ROOT没有设定.
Podfile:
platform :ios, '6.0'
workspace 'Example.xcworkspace'
xcodeproj 'example/Example.xcodeproj'
pod 'TestFlightSDK', '~> 1.3.0-beta.5'
pod 'TestFlightLogger', '~> 0.0.2'
pod 'CocoaLumberjack', '~> 1.6.2'
pod 'Reachability', '~> 3.1.0'
pod 'SBJson', '~> 3.2'
pod 'MKMapViewZoom', '~> 1.0.0'
Run Code Online (Sandbox Code Playgroud) cocoapods ×10
ios ×4
objective-c ×3
xcode ×3
cocoa ×2
build ×1
build-error ×1
cocoa-touch ×1
git ×1
iphone ×1
restkit-0.20 ×1
xcode5 ×1