-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Copy Pods Resources phase wipes .lproj directories completely, removing localized resources of app target since 1.3.0 #6927
Comments
@nikolaykasyanov thanks for the report and project. I'll need to check your project but why do you expect an *.lproj file in the DerivedData? |
@dnkoutso I don't expect anything in derived data, rather in the actual application bundle, but unfortunately it's not there, everything except pod resources is wiped by Expected bundle contents: Actual bundle contents: Thanks for looking into it! |
Here's another weird thing: when I do Build in Xcode, it behaves exactly as command line xcodebuild call (i.e. files are missing), but when I use Run, files suddenly appear. |
@nikolaykasyanov if you wipe out your derived data and re-build do you see the files? I did this and I correctly see the same file list as in your first screenshot. |
@nikolaykasyanov keep in mind from the |
@dnkoutso I understand this, and the problem is that Here's my clean build results: $ rm -rf ~/Library/Developer/Xcode/DerivedData/
$ xcodebuild -scheme CocoaPods13Bug -workspace CocoaPods13Bug.xcworkspace -sdk iphonesimulator build
... log omitted...
** BUILD SUCCEEDED **
$ ls /Users/nkasyanov/Library/Developer/Xcode/DerivedData/CocoaPods13Bug-fwgmofrkgchvrufcqskhrpiwysqx/Build/Products/Debug-iphonesimulator/CocoaPods13Bug.app/Base.lproj/
BMA4S.strings It also happens on CI (here's how I found this issue in the first place) and on my colleagues's laptop. |
Hm I believe you here's my output
|
@nikolaykasyanov can you manually inspect |
@nikolaykasyanov wait a second I think I got it. |
@nikolaykasyanov confirmed. This is a rather large issue. Working on it. |
@dnkoutso thank you! If you need any more input or help with testing — just let me know. |
/cc @jgavris |
🤔 |
@nikolaykasyanov this is a bit weird, still investigating. I have two large apps that use tons of resources that do not exhibit this behavior |
Same, I am not seeing any 'deleting' in my copy resources build phase. |
I believe we are getting closer. I think I found it. You are right its not using a resource bundle. This causes the Investigating a bit more to confirm this and will update with it with a fix. |
I am a bit wrong in the original assumption, still looking. |
@dnkoutso thanks for the update. A small correction: podspec I'm using in the sample project is derived from this file, I believe: https://github.com/Accengage/ios-pod-specs/blob/master/Accengage-iOS-SDK/5.5.0/Accengage-iOS-SDK.podspec#L30 UPD: I've updated sample project to use upstream podspec. Same behaviour. |
This is the section in the |
Agreed, that one is probably overstepping its bounds. The one for copying |
And the problem is because |
@jgavris are we certain the |
I'm not sure I follow. It seems wrong that an app would install a resource bundle ( |
Ah, ok I think you are right just wanted to double check. |
@nikolaykasyanov thanks for the report, I believe this will be merged and ship with 1.3.1 of CP. |
@dnkoutso thanks you. |
@nikolaykasyanov 1.3.1 is out. double check it :) |
@dnkoutso works like a charm, thanks! |
Report
What did you do?
Updated to CocoaPods 1.3.0, did
pod install
, runxcodebuild
What did you expect to happen?
All resources (pods' and target's) are properly copied into app bundle
What happened instead?
Target's resources are wiped during Copy Pods Resources phase, here's the excerpt from the build log:
Please note
deleting ...
lines.CocoaPods Environment
Stack
Installation Source
Plugins
Podfile
Project that demonstrates the issue
https://github.com/nikolaykasyanov/CocoaPods13Bug
How to reproduce:
pod install
(make sure it's CocoaPods 1.3.0)xcodebuild -scheme CocoaPods13Bug -workspace CocoaPods13Bug.xcworkspace -sdk iphonesimulator build
Notes
The text was updated successfully, but these errors were encountered: