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

Already on GitHub? Sign in to your account

PhaseScriptExecution Copy Pods Resources - fail #1584

Closed
krzyzanowskim opened this Issue Nov 13, 2013 · 5 comments

Comments

Projects
None yet
3 participants

Hi,

XCode 5.0.2, OSX 10.9. pod 0.27.1

I have library libTestKit with corresponding podspec TestKit. This library depends on other cocoapods that came with some resources.

Podfile looks like this

xcodeproj 'TestKit.xcodeproj'

target 'TestKit' do
  pod "Facebook-iOS-SDK"
  pod "TSMessages", git: 'https://github.com/toursprung/TSMessages.git', branch: :master
end

target 'WelcomeTest' do
  pod "TestKit", :path => "TestKit.podspec"
end

this is working.. except that finally I get error about resources that ends with

/Users/marcinkrzyzanowski/Devel/TestKit/Pods/Facebook-iOS-SDK/src/FBUserSettingsViewResources.bundle
/Users/marcinkrzyzanowski/Devel/TestKit/Pods/TSMessages/TSMessages/Resources/Images/NotificationBackgroundError.png
/Users/marcinkrzyzanowski/Devel/TestKit/Pods/TSMessages/TSMessages/Resources/Images/NotificationBackgroundError@2x.png
/Users/marcinkrzyzanowski/Devel/TestKit/Pods/TSMessages/TSMessages/Resources/Images/NotificationBackgroundErrorIcon.png
/Users/marcinkrzyzanowski/Devel/TestKit/Pods/TSMessages/TSMessages/Resources/Images/NotificationBackgroundErrorIcon@2x.png
/Users/marcinkrzyzanowski/Devel/TestKit/Pods/TSMessages/TSMessages/Resources/Images/NotificationBackgroundMessage.png
/Users/marcinkrzyzanowski/Devel/TestKit/Pods/TSMessages/TSMessages/Resources/Images/NotificationBackgroundMessage@2x.png
/Users/marcinkrzyzanowski/Devel/TestKit/Pods/TSMessages/TSMessages/Resources/Images/NotificationBackgroundSuccess.png
/Users/marcinkrzyzanowski/Devel/TestKit/Pods/TSMessages/TSMessages/Resources/Images/NotificationBackgroundSuccess@2x.png
/Users/marcinkrzyzanowski/Devel/TestKit/Pods/TSMessages/TSMessages/Resources/Images/NotificationBackgroundSuccessIcon.png
/Users/marcinkrzyzanowski/Devel/TestKit/Pods/TSMessages/TSMessages/Resources/Images/NotificationBackgroundSuccessIcon@2x.png
/Users/marcinkrzyzanowski/Devel/TestKit/Pods/TSMessages/TSMessages/Resources/Images/NotificationBackgroundWarning.png
/Users/marcinkrzyzanowski/Devel/TestKit/Pods/TSMessages/TSMessages/Resources/Images/NotificationBackgroundWarning@2x.png
/Users/marcinkrzyzanowski/Devel/TestKit/Pods/TSMessages/TSMessages/Resources/Images/NotificationBackgroundWarningIcon.png
/Users/marcinkrzyzanowski/Devel/TestKit/Pods/TSMessages/TSMessages/Resources/Images/NotificationBackgroundWarningIcon@2x.png
/Users/marcinkrzyzanowski/Devel/TestKit/Pods/TSMessages/TSMessages/Resources/Images/NotificationButtonBackground.png
/Users/marcinkrzyzanowski/Devel/TestKit/Pods/TSMessages/TSMessages/Resources/Images/NotificationButtonBackground@2x.png
/Users/marcinkrzyzanowski/Devel/TestKit/Pods/TSMessages/TSMessages/Resources/TSMessagesDefaultDesign.json
building file list ... done
NotificationBackgroundError.png
NotificationBackgroundError@2x.png
NotificationBackgroundErrorIcon.png
NotificationBackgroundErrorIcon@2x.png
NotificationBackgroundMessage.png
NotificationBackgroundMessage@2x.png
NotificationBackgroundSuccess.png
NotificationBackgroundSuccess@2x.png
NotificationBackgroundSuccessIcon.png
NotificationBackgroundSuccessIcon@2x.png
NotificationBackgroundWarning.png
NotificationBackgroundWarning@2x.png
NotificationBackgroundWarningIcon.png
NotificationBackgroundWarningIcon@2x.png
NotificationButtonBackground.png
NotificationButtonBackground@2x.png
TSMessagesDefaultDesign.json
FBUserSettingsViewResources.bundle/
FBUserSettingsViewResources.bundle/Contents/
FBUserSettingsViewResources.bundle/Contents/Resources/
FBUserSettingsViewResources.bundle/Contents/Resources/en.lproj/
FBUserSettingsViewResources.bundle/Contents/Resources/en.lproj/Localizable.strings
FBUserSettingsViewResources.bundle/Contents/Resources/he.lproj/
FBUserSettingsViewResources.bundle/Contents/Resources/he.lproj/Localizable.strings
FBUserSettingsViewResources.bundle/images/
FBUserSettingsViewResources.bundle/images/facebook-logo.png
FBUserSettingsViewResources.bundle/images/facebook-logo@2x.png
FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape.jpg
FBUserSettingsViewResources.bundle/images/loginBackgroundIPadLandscape@2x.jpg
FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait.jpg
FBUserSettingsViewResources.bundle/images/loginBackgroundIPadPortrait@2x.jpg
FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait.jpg
FBUserSettingsViewResources.bundle/images/loginBackgroundIPhonePortrait@2x.jpg
FBUserSettingsViewResources.bundle/images/silver-button-normal.png
FBUserSettingsViewResources.bundle/images/silver-button-normal@2x.png
FBUserSettingsViewResources.bundle/images/silver-button-pressed.png
FBUserSettingsViewResources.bundle/images/silver-button-pressed@2x.png

sent 1084240 bytes  received 738 bytes  2169956.00 bytes/sec
total size is 1081824  speedup is 1.00
/* com.apple.actool.errors */
/Users/marcinkrzyzanowski/Devel/TestKit/WelcomeTest/Images.xcassets: error: The output directory "/Users/marcinkrzyzanowski/Library/Developer/Xcode/DerivedData/TestKit-gaomsrlmsovmkjfssqwnfycfufnb/Build/Products/Debug-iphoneos/TestKit." does not exist.
Command /bin/sh failed with exit code 1

what can be wrong ?

I don't know why there is anything with 'WelcomeTest' while this is about 'TestKit' target. Build suceed when I remove Images.xcassets from 'WelcomeKit' target… but this is about TestKit target, not WelcomeKit.

Another observation is that when I run "pod install" for the second time like this: rm -rf Pods && rm -rf Podfile.lock && pod install project is totally broken (I have to revert changes)

Owner

fabiopelosin commented Nov 13, 2013

There have been many fixes in master related to the the support for xcassets files. I would wait for the next release (hopefully soon) to see if you specific issue has already been solved.

Owner

alloy commented Nov 13, 2013

Yeah this seems to be fixed by #1521 which will be available in the next release.

@alloy alloy closed this Nov 13, 2013

Owner

alloy commented Nov 13, 2013

As a temporary workaround, you can just remove the actool related parts from the generated copy resources script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment