运行Cocoapods“pod install”导致库消失

时间:2015-12-10 22:40:59

标签: ios xcode cocoapods libraries

我们遇到现有项目的问题。运行pod install会导致我们现有的Pod中断。

我们现有的项目如下所示: enter image description here

运行pod install后,Products目录和Targets下的几个库都消失了,应用程序将无法编译: enter image description here

以下是pod install --verbose

的输出
myapp-Macbook-Air:myapp username$ pod install --verbose
  Preparing

Updating local specs repositories

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

Analyzing dependencies

Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods`:
  (`$(ARCHS_STANDARD)`)

Finding Podfile changes
  - Dropbox-iOS-SDK
  - FiksuSDK
  - GoogleAnalytics
  - Localytics
  - MobileAppTracker
  - SDWebImage

Resolving dependencies of `Podfile`

Comparing resolved specification to the sandbox manifest
  - Dropbox-iOS-SDK
  - FiksuSDK
  - GoogleAnalytics
  - Localytics
  - MobileAppTracker
  - SDWebImage

Downloading dependencies

-> Using Dropbox-iOS-SDK (1.3.13)

-> Using FiksuSDK (4.4.1)

-> Using GoogleAnalytics (3.13.0)

-> Using Localytics (3.5.0)

-> Using MobileAppTracker (3.7)

-> Using SDWebImage (3.7.2)
  - Running pre install hooks

Generating Pods project
  - Creating Pods project
  - Adding source files to Pods project
  - Adding frameworks to Pods project
  - Adding libraries to Pods project
  - Adding resources to Pods project
  - Linking headers
  - Installing targets
    - Installing target `SDWebImage` iOS 7.0
    - Installing target `Pods` iOS 7.0
  - Running post install hooks
  - Writing Xcode project file to `Pods/Pods.xcodeproj`
    - Generating deterministic UUIDs
  - Writing Lockfile in `Podfile.lock`
  - Writing Manifest in `Pods/Manifest.lock`

Integrating client project

Integrating target `Pods` (`myapp.xcodeproj` project)
  Adding Build Phase 'Embed Pods Frameworks' to project.
  - Running post install hooks
    - cocoapods-stats from
    `/usr/local/lib/ruby/gems/2.1.0/gems/cocoapods-stats-0.6.2/lib/cocoapods_plugin.rb`

Sending stats
      - Dropbox-iOS-SDK, 1.3.13
      - FiksuSDK, 4.4.1
      - GoogleAnalytics, 3.13.0
      - Localytics, 3.5.0
      - MobileAppTracker, 3.7
      - SDWebImage, 3.7.2
  Pod installation complete! There are 6 dependencies from the Podfile and 6
  total pods installed.

[!] The `myapp [Debug]` target overrides the `GCC_PREPROCESSOR_DEFINITIONS` build setting defined in `Pods/Target Support Files/Pods/Pods.debug.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

(我们总是有GCC_PREPROCESSOR警告)

有关此处发生的事情的任何想法,将不胜感激。

其他一些说明:我们在Xcode 6和Xcode 7上遇到了这个问题,但两台机器都在运行OS X 10.11,这可能是问题所在。 Cocoapods v0.39.0。还尝试降级到Cocoapods v0.25.0但出现同样的问题。

0 个答案:

没有答案