4

アップデート

CocoaPods 0.14.0.rc2 をインストールしたプライマリ マシンにリポジトリのクローンを作成したところ、すべてがスムーズにインストールされました。

今後さらに依存関係を追加しながら、これがどのように機能するかを見守りますが、今のところ、CocoaPods の新しいバージョンがそのトリックを行ったようです.道具。


プロジェクトの依存関係を管理するために CocoaPods を調べ始めました。

最初の開始はスムーズに進みました — 私が評価しているプロジェクトは、最初から LibComponentLogging を使用する iOS 静的ライブラリです。

依存関係として LibComponentLogging-NSLog と LibComponentLogging-pods (これはまだ共通仕様リポジトリにはありませんが、ローカルに含めることができ、含まれていました) を依存関係として指定した Podfile を作成した後、最初pod installは依存関係を解決してインストールし、ワークスペースを作成しました。 .

すべて元気でダンディ。

プロジェクトを少しハッキングした後、Podfile にさらに 2 つの Pod を追加しました (FMDB と sqlcipher - そのために Podspec を作成する必要がありました)。

再度実行pod installすると、指定されたリポジトリがキャッシュに取り込まれ、離れて Pod のサブディレクトリが作成されましたが、何も入力されませでした — エラーは発生しませんでした。

トラブルシューティングを行うために、カスタム podspec のポッドを Podfile から削除し、pod install再度実行しましたが、結果は同じでした。

空のPods/FMDB- と -Pods/sqlcipherディレクトリ、および失敗したものの残りをすべて削除してから、pod install --verbose再度実行しました。同じ結果でした。おそらく、ここで初めて失敗が報告されました。

私は可能な限りの組み合わせでこれを行いました — まさに文字通り…</p>

この時点で、私は少しイライラしました。ある時点でポップアップした 、ワークスペース、Pods ディレクトリのホールセール、 、、考えられる他のすべてのもの
を削除し、最初からやり直しました。Podfile.lock~/Library/Caches/CocoaPods~/.cocoapods

を実行しpod setup、再度追加LibComponentLogging-podsして (もちろん、プロジェクトのディレクトリで)pod install --verbose再度実行しました。

最初の試行で問題なく動作したポッドでも失敗していたという点で、結果は異なります…</p>

ここで何が起こっているのかについての洞察をいただければ幸いです…</p>


参考までに、ここに私の Podfile、カスタム仕様、およびこの機能を再び機能させるための最新の「Tabula Rasa」の試みの 1 つの出力を示します。

ポッドファイル:

platform :ios, '5.1'

xcodeproj 'TestLibrary.xcodeproj'

pod 'sqlcipher', :podspec => 'sqlcipher.podspec'
pod 'FMDB', '1.5.1'
pod 'LibComponentLogging-pods'
pod 'LibComponentLogging-NSLog'

set_arc_compatibility_flag!

私のカスタム sqlcipher.podspec:

Pod::Spec.new do |s|
  s.name         = "sqlcipher"
  s.version      = "2.0.6"
  s.summary      = "SQLCipher is an SQLite extension that provides 256 bit AES encryption of database files."
  s.description  = <<-DESC
    Pages are encrypted before being written to disk and are decrypted when read back.
    Due to the small footprint and great performance it’s ideal for protecting embedded application databases and is well suited for mobile development.
                   DESC
  s.homepage     = "http://sqlcipher.net"

  s.license      = { :type => 'MIT Style', :file => 'LICENSE' }

  s.author       = { "Steven Lombardo" => "sjlombardo@zetetic.net" }
  s.source       = { :git => "https://github.com/sqlcipher/sqlcipher.git", :tag => "v2.0.6" }

  s.ios.deployment_target = '5.0'
  s.osx.deployment_target = '10.7'

  s.source_files = 'src/**/*.{h,m}', 'ext/**/*.{h,m}'
  s.public_header_files = 'src/**/*.h'

  s.libraries = 'openssl', 'crypto'

  s.xcconfig = { 'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/openssl', 'OTHER_CFLAGS' => '-DSQLITE_HAS_CODEC' }

end

そして出力:

quicksilver:TestLibrary me$ pod install --verbose

Updating Spec Repositories

Updating spec repo `lcl'
   $ /usr/bin/git pull
   Already up-to-date.

Updating spec repo `master'
   $ /usr/bin/git pull
   Already up-to-date.

Cocoapods 0.14.0.rc2 is available.


Resolving dependencies of: /Users/me/Documents/progging/TestLibrary/Podfile

Resolving dependencies for target `default' (iOS 5.1)
  - sqlcipher (from `sqlcipher.podspec')
  * Fetching podspec for `sqlcipher' from: sqlcipher.podspec
  - FMDB (= 1.5.1)
  - LibComponentLogging-pods
  - LibComponentLogging-NSLog
    - LibComponentLogging-Core (>= 1.1.6)

Installing dependencies

-> Installing FMDB (1.5.1)
-> Creating cache git repo (/Users/me/Library/Caches/CocoaPods/Git/d92b1cbf09a2c9dfcf7b19167b8f9c87d5e7b65f)
   $ /usr/bin/git clone "https://github.com/ccgus/fmdb.git" "/Users/me/Library/Caches/CocoaPods/Git/d92b1cbf09a2c9dfcf7b19167b8f9c87d5e7b65f"
   Cloning into '/Users/me/Library/Caches/CocoaPods/Git/d92b1cbf09a2c9dfcf7b19167b8f9c87d5e7b65f'...
-> Cloning git repo
   $ /usr/bin/git rev-list --max-count=1 v1.5.1
   be9cbd1bfa3bd16914cfef75cb05053b80f41b24
   $ /usr/bin/git init
   Initialized empty Git repository in /Users/me/Documents/progging/TestLibrary/Pods/FMDB/.git/
   $ /usr/bin/git remote add origin '/Users/me/Library/Caches/CocoaPods/Git/d92b1cbf09a2c9dfcf7b19167b8f9c87d5e7b65f'
   $ /usr/bin/git fetch origin tags/v1.5.1
   From /Users/me/Library/Caches/CocoaPods/Git/d92b1cbf09a2c9dfcf7b19167b8f9c87d5e7b65f
    * tag               v1.5.1     -> FETCH_HEAD
   $ /usr/bin/git reset --hard FETCH_HEAD
   HEAD is now at be9cbd1 Merge pull request #37 from ivira/master
   $ /usr/bin/git checkout -b activated-pod-commit
   Switched to a new branch 'activated-pod-commit'
-> Installing documentation
[!] Skipping documentation generation because appledoc can't be found.

-> Installing LibComponentLogging-Core (1.3.1)
-> Creating cache git repo (/Users/me/Library/Caches/CocoaPods/Git/a97552cd1e0755d054148dacafea69df60161862)
   $ /usr/bin/git clone "https://github.com/aharren/LibComponentLogging-Core.git" "/Users/me/Library/Caches/CocoaPods/Git/a97552cd1e0755d054148dacafea69df60161862"
   Cloning into '/Users/me/Library/Caches/CocoaPods/Git/a97552cd1e0755d054148dacafea69df60161862'...
-> Cloning git repo
   $ /usr/bin/git rev-list --max-count=1 1.3.1
   17e294028794f7e30a3857934c8534454427bdcd
   $ /usr/bin/git init
   Initialized empty Git repository in /Users/me/Documents/progging/TestLibrary/Pods/LibComponentLogging-Core/.git/
   $ /usr/bin/git remote add origin '/Users/me/Library/Caches/CocoaPods/Git/a97552cd1e0755d054148dacafea69df60161862'
   $ /usr/bin/git fetch origin tags/1.3.1
   From /Users/me/Library/Caches/CocoaPods/Git/a97552cd1e0755d054148dacafea69df60161862
    * tag               1.3.1      -> FETCH_HEAD
   $ /usr/bin/git reset --hard FETCH_HEAD
   HEAD is now at 17e2940 LibComponentLogging-Core-1.3.1
   $ /usr/bin/git checkout -b activated-pod-commit
   Switched to a new branch 'activated-pod-commit'
-> Installing documentation
[!] Skipping documentation generation because appledoc can't be found.

-> Installing LibComponentLogging-NSLog (1.0.4)
-> Creating cache git repo (/Users/me/Library/Caches/CocoaPods/Git/648148f5d0724fa902677dba515ff302e017f305)
   $ /usr/bin/git clone "https://github.com/aharren/LibComponentLogging-NSLog.git" "/Users/me/Library/Caches/CocoaPods/Git/648148f5d0724fa902677dba515ff302e017f305"
   Cloning into '/Users/me/Library/Caches/CocoaPods/Git/648148f5d0724fa902677dba515ff302e017f305'...
-> Cloning git repo
   $ /usr/bin/git rev-list --max-count=1 1.0.4
   9ea9494870c178972e4af27471a10337d176dd77
   $ /usr/bin/git init
   Initialized empty Git repository in /Users/me/Documents/progging/TestLibrary/Pods/LibComponentLogging-NSLog/.git/
   $ /usr/bin/git remote add origin '/Users/me/Library/Caches/CocoaPods/Git/648148f5d0724fa902677dba515ff302e017f305'
   $ /usr/bin/git fetch origin tags/1.0.4
   From /Users/me/Library/Caches/CocoaPods/Git/648148f5d0724fa902677dba515ff302e017f305
    * tag               1.0.4      -> FETCH_HEAD
   $ /usr/bin/git reset --hard FETCH_HEAD
   HEAD is now at 9ea9494 add support for non-clang compilers
   $ /usr/bin/git checkout -b activated-pod-commit
   Switched to a new branch 'activated-pod-commit'
-> Installing documentation
[!] Skipping documentation generation because appledoc can't be found.

-> Installing LibComponentLogging-pods (0.0.1)
-> Creating cache git repo (/Users/me/Library/Caches/CocoaPods/Git/5798a4173d672827fae705b4902b4c1fa2b4439b)
   $ /usr/bin/git clone "https://github.com/aharren/LibComponentLogging-pods.git" "/Users/me/Library/Caches/CocoaPods/Git/5798a4173d672827fae705b4902b4c1fa2b4439b"
   Cloning into '/Users/me/Library/Caches/CocoaPods/Git/5798a4173d672827fae705b4902b4c1fa2b4439b'...
-> Cloning git repo
   $ /usr/bin/git rev-list --max-count=1 0.0.1
   440e1f3df8e06b6197846f4825bd720539653541
   $ /usr/bin/git init
   Initialized empty Git repository in /Users/me/Documents/progging/TestLibrary/Pods/LibComponentLogging-pods/.git/
   $ /usr/bin/git remote add origin '/Users/me/Library/Caches/CocoaPods/Git/5798a4173d672827fae705b4902b4c1fa2b4439b'
   $ /usr/bin/git fetch origin tags/0.0.1
   From /Users/me/Library/Caches/CocoaPods/Git/5798a4173d672827fae705b4902b4c1fa2b4439b
    * tag               0.0.1      -> FETCH_HEAD
   $ /usr/bin/git reset --hard FETCH_HEAD
   HEAD is now at 440e1f3 add lcl_pods.h
   $ /usr/bin/git checkout -b activated-pod-commit
   Switched to a new branch 'activated-pod-commit'
-> Installing documentation
[!] Skipping documentation generation because appledoc can't be found.

-> Installing sqlcipher (2.0.6)
-> Creating cache git repo (/Users/me/Library/Caches/CocoaPods/Git/98d25df407a9bd30ae63045cf62ee311541f4fb0)
   $ /usr/bin/git clone "https://github.com/sqlcipher/sqlcipher.git" "/Users/me/Library/Caches/CocoaPods/Git/98d25df407a9bd30ae63045cf62ee311541f4fb0"
   Cloning into '/Users/me/Library/Caches/CocoaPods/Git/98d25df407a9bd30ae63045cf62ee311541f4fb0'...
-> Cloning git repo
   $ /usr/bin/git rev-list --max-count=1 v2.0.6
   6dbdd4663cfed9d54803d22b1bdce8b9884e1f6b
   $ /usr/bin/git init
   Initialized empty Git repository in /Users/me/Documents/progging/TestLibrary/Pods/sqlcipher/.git/
   $ /usr/bin/git remote add origin '/Users/me/Library/Caches/CocoaPods/Git/98d25df407a9bd30ae63045cf62ee311541f4fb0'
   $ /usr/bin/git fetch origin tags/v2.0.6
   From /Users/me/Library/Caches/CocoaPods/Git/98d25df407a9bd30ae63045cf62ee311541f4fb0
    * tag               v2.0.6     -> FETCH_HEAD
   $ /usr/bin/git reset --hard FETCH_HEAD
   HEAD is now at 6dbdd46 bump to 2.0.6
   $ /usr/bin/git checkout -b activated-pod-commit
   Switched to a new branch 'activated-pod-commit'
-> Installing documentation
[!] Skipping documentation generation because appledoc can't be found.

Generating support files

- Generating xcconfig file at `/Users/me/Documents/progging/TestLibrary/Pods/Pods.xcconfig'
- Generating prefix header at `/Users/me/Documents/progging/TestLibrary/Pods/Pods-prefix.pch'
- Generating copy resources script at `/Users/me/Documents/progging/TestLibrary/Pods/Pods-resources.sh'
- Running post install hooks

-> Creating LibComponentLogging configuration
   Creating folder '/Users/me/Documents/progging/TestLibrary/Pods/LibComponentLogging-pods'
   Creating folder '/Users/me/Documents/progging/TestLibrary/Pods/Headers/LibComponentLogging-pods'
   Creating folder '/Users/me/Documents/progging/TestLibrary/Pods/BuildHeaders/LibComponentLogging-pods'
   Adding suffix '.pods.main' to includes in file '/Users/me/Documents/progging/TestLibrary/Pods/LibComponentLogging-Core/lcl.h'

          ――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

### Report

* What did you do?

* What did you expect to happen?

* What happened instead?


### Stack

```
   CocoaPods : 0.13.0
        Ruby : ruby 1.8.7 (2011-12-28 patchlevel 357) [universal-darwin11.0]
    RubyGems : 1.8.24
        Host : Mac OS X 10.7.4 (11E53)
       Xcode : 4.4.1 (4F1003)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib
Repositories : lcl - git://github.com/aharren/LibComponentLogging-CocoaPods-Specs.git @ d18c0de80368283253d5cf3b6faca73eadf4e58f
               master - https://github.com/CocoaPods/Specs.git @ 067e6c0ca9da516ef8807b363643150dc0124c16
```

### Podfile

```ruby
          platform :ios, '5.1'

xcodeproj 'TestLibrary.xcodeproj'

pod 'sqlcipher', :podspec => 'sqlcipher.podspec'
pod 'FMDB', '1.5.1'
pod 'LibComponentLogging-pods'
pod 'LibComponentLogging-NSLog'

set_arc_compatibility_flag!
```

### Error

```
No such file or directory - /Users/me/Documents/progging/TestLibrary/Pods/LibComponentLogging-Core/lcl.h
/Users/me/.cocoapods/lcl/LibComponentLogging-pods/0.0.1/LibComponentLogging-pods.podspec:195:in `read'
/Users/me/.cocoapods/lcl/LibComponentLogging-pods/0.0.1/LibComponentLogging-pods.podspec:195:in `add_suffix_to_includes'
/Users/me/.cocoapods/lcl/LibComponentLogging-pods/0.0.1/LibComponentLogging-pods.podspec:126:in `prepare_configure'
/Users/me/.cocoapods/lcl/LibComponentLogging-pods/0.0.1/LibComponentLogging-pods.podspec:62:in `configure_logger'
/Users/me/.cocoapods/lcl/LibComponentLogging-NSLog/1.0.4/LibComponentLogging-NSLog.podspec:30:in `post_install'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.13.0/lib/cocoapods/installer.rb:139:in `run_post_install_hooks'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.13.0/lib/cocoapods/installer.rb:138:in `each'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.13.0/lib/cocoapods/installer.rb:138:in `run_post_install_hooks'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.13.0/lib/cocoapods/installer.rb:137:in `each'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.13.0/lib/cocoapods/installer.rb:137:in `run_post_install_hooks'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.13.0/lib/cocoapods/installer.rb:126:in `install!'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.13.0/lib/cocoapods/command/install.rb:53:in `run'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.13.0/lib/cocoapods/command.rb:72:in `run'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.13.0/bin/pod:12
/usr/bin/pod:23:in `load'
/usr/bin/pod:23
```

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing github issues similar to yours:
https://github.com/CocoaPods/CocoaPods/issues/search?q=No+such+file+or+directory+-+%2FUsers%2Fme%2FDocuments%2Fprogging%2FTestLibrary%2FPods%2FLibComponentLogging-Core%2Flcl.h

If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new

Don't forget to anonymize any private data!

quicksilver:TestLibrary me$ 
4

0 に答える 0