Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile Pods library in 0.18.0 #956

Closed
siuying opened this issue Apr 9, 2013 · 5 comments
Closed

Cannot compile Pods library in 0.18.0 #956

siuying opened this issue Apr 9, 2013 · 5 comments

Comments

@siuying
Copy link
Contributor

siuying commented Apr 9, 2013

I have a project having 2 targets: one main target, another test target.

After updated to pods 0.18.0, after pod install I open the project and compile the test target. It will always failed with error: https://gist.github.com/siuying/5347905

It cannot find the Pods-SampleAppTests-prefix.pch.d file

The project compile properly in 0.17.x.

My Podfile:

platform :ios, '6.0'
pod "DTCoreText", :head
target :SampleAppTests do
    pod 'Specta'
    pod 'Expecta'
    pod 'OCMock'
end

A minimal project to reproduce the error: https://dl.dropbox.com/u/164404/SampleAppCocoapodsCompileError.zip

@alloy
Copy link
Member

alloy commented Apr 9, 2013

I’m not able to reproduce the issue. I was able to build the project and run pod install with 0.18.0 and still build. Can you check if quitting Xcode, deleting the DerivedData dir, and re-build helps?

@fabiopelosin
Copy link
Member

@alloy The issue is in the test target.

@alloy
Copy link
Member

alloy commented Apr 9, 2013

Ugh… 😭

@alloy
Copy link
Member

alloy commented Apr 9, 2013

So yeah, I can reproduce the failure and succeed with 0.17.1. The difference is the extra $(inherited) flag here. It should not be quoted, if you remove them from the xcconfig the project will build again.

@alloy alloy closed this as completed in b7ad2cf Apr 9, 2013
@siuying
Copy link
Contributor Author

siuying commented Apr 10, 2013

Awesome! 👍

alloy added a commit that referenced this issue Apr 10, 2013
fabiopelosin added a commit that referenced this issue Apr 10, 2013
Release 0.18.1

* tag '0.18.1':
  Release 0.18.1
  [Fixtures] Update version
  [Changelog]
  Require Core 0.18.1
  Changelog [ci skip]
  [TargetIntegrator] Robustness against target with missing file references
  Fix Xcodeproj autoload
  More autoload #see 919
  Don't initialize Spec::Set::Statistics if not needed
  [Fix] Do not quote `$(inherited)`. Fixes #956.
  [SourceManagers] Fix CocoaPods spelling
  [Rakefile] Set git user on Travis 2
  [Rakefile] Set git user on Travis
  [Installer] Run the hooks of all the specs (not of the installed ones only)

Conflicts:
	CHANGELOG.md
	lib/cocoapods/command.rb
jzapater pushed a commit to jzapater/CocoaPods that referenced this issue Sep 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants