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 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 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

@fabiopelosin fabiopelosin commented Apr 9, 2013

@alloy The issue is in the test target.

@alloy
Copy link
Member

@alloy alloy commented Apr 9, 2013

Ugh… 😭

@alloy
Copy link
Member

@alloy 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 in b7ad2cf Apr 9, 2013
@siuying
Copy link
Contributor Author

@siuying siuying commented Apr 10, 2013

Awesome! 👍

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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants