Cocoapods: Cocoapods 1.10.0 caused issues with assets folder

Created on 17 Nov 2020  ·  7Comments  ·  Source: CocoaPods/CocoaPods

ℹ After updating Cocoapods to 1.10.0, I tried to run the project on Xcode 12.1, any image from my assets returns nil in Runtime only, when i downgrade Cocoapods to version 1.9.1 it works fine!

Using CocoaPods: 1.10.0

Using Xcode 12.1

Report

What did you do?

  • update cocoapods to 1.10.0
  • Run pod update in terminal
    any ideas?
awaiting input need sample

Most helpful comment

I encountered the same problem. Trigger conditions only need set resources path like this:

s.resources = [
'XDCommonModule/Assets/*.xcassets',
]

while in cocoapods1.9.3+xcode11 ✅ cocoapods1.9.3+xcode12 ✅ cocoapods1.10.0+xcode12 ❌
maybe wrong with ".car"

All 7 comments

This is not a sufficient issue report. Please upload sample app demonstrating issue and reproducible steps.

@dnkoutso please check updates

Still need a sample app here. It takes a long of time to reproduce such reports without a sample app.

@dnkoutso provide me with UDID and email so I'll create IPA and send it for you

I encountered the same problem. Trigger conditions only need set resources path like this:

s.resources = [
'XDCommonModule/Assets/*.xcassets',
]

while in cocoapods1.9.3+xcode11 ✅ cocoapods1.9.3+xcode12 ✅ cocoapods1.10.0+xcode12 ❌
maybe wrong with ".car"

I have the same problem.
It doesn't work when in CocoaPods 1.10.0 + Xcode 12.2 , but it's fine in CocoaPods 1.9.3 + Xcode 12.2.

In CocoaPods 1.10.0 + Xcode 12.2
Build Phase:
When there are multiple .xcasset files in the Pod library, it prompts that the xx.car file is not found.
For example:
The pod lib have Color.xcassets, Member.xcassets, The Xcode prompts that can't find Color.car and Member.car

Podfile: (OC + Swift)
use_frameworks! :linkage => :static
install! 'cocoapods', :disable_input_output_paths => true

Podspec:
s.source_files = 'xxx/Classes//.{h,m}'
s.resources = "xxx/
/.{xib,png,jpg,txt,xml,plist,xcassets,storyboard}"

I have the same problem with CocoaPods 1.10.0 + Xcode 12.2

I have executed pod install and success, but build error:

Resource "/Users/xxx/Library/Developer/Xcode/DerivedData/App-ayaltzewtboqekeslwlmxhqpomtw/Build/Products/Debug-iphonesimulator/xxPod/xxPod.framework/xxPod.car" not found. Run 'pod install' to update the copy resources script.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marzapower picture marzapower  ·  3Comments

iosdev-republicofapps picture iosdev-republicofapps  ·  3Comments

Curtis-Halbrook picture Curtis-Halbrook  ·  3Comments

hmistry picture hmistry  ·  3Comments

k06a picture k06a  ·  3Comments