Carte icon indicating copy to clipboard operation
Carte copied to clipboard

Carte shows only it's license

Open hamza-mansouur opened this issue 5 years ago • 10 comments

I added carte to my project but when I push the CarteViewController it includes only the carte license no other libraries licenses.

hamza-mansouur avatar Apr 22 '19 11:04 hamza-mansouur

@hamza-mansouur

Add this to the end of your podfile:

post_install do |installer|
  pods_dir = File.dirname(installer.pods_project.path)
  at_exit { `ruby #{pods_dir}/Carte/Sources/Carte/carte.rb configure` }
end

hujaber avatar May 01 '19 12:05 hujaber

Update: It seems that this only works after the first pod install

hujaber avatar May 01 '19 13:05 hujaber

Hey Hujaber, thank you for your reply but even in the first pod install it didn't work, I started a new project and nothing changed. this is my pod file : use_frameworks! target 'carteTest' do pod 'Kingfisher' pod 'SnapKit' pod 'MaterialComponents/Buttons' pod 'SwiftSoup' pod 'FacebookCore' pod 'FacebookLogin' pod 'FacebookShare' pod 'PickerView' pod 'Carte' end post_install do |installer| pods_dir = File.dirname(installer.pods_project.path) at_exit { ruby #{pods_dir}/Carte/Sources/Carte/carte.rb configure } end

hamza-mansouur avatar May 01 '19 15:05 hamza-mansouur

Cleaning the project (Product -> Clean Build Folder) solved this issue for me.

JoKuebler avatar May 07 '19 08:05 JoKuebler

Nope unfortunately Clean Build Folder didn't solve the issue for me.

hamza-mansouur avatar May 08 '19 10:05 hamza-mansouur

It's weird, I still get the issue sometimes and after I clean and build again it is fixed but eventually, it occurs again. Would be interested in how this is fixed permanently.

JoKuebler avatar May 08 '19 16:05 JoKuebler

same. I need to clean build every time to show

lbagga2x avatar Jul 03 '19 22:07 lbagga2x

I'm also experiencing this issue. Any updates?

JonasSL avatar Jul 26 '19 12:07 JonasSL

I found that this bug only appears under the New Build System. It seems that Xcode won't process Info.plist until it is changed.

Build log when it works

There is Info.plist processing

Screen Shot 2019-09-08 at 1 00 30 AM

Build log when it doesn't work

There is no Info.plist processing

Screen Shot 2019-09-08 at 1 00 51 AM

I will dive into this issue.

devxoul avatar Sep 07 '19 16:09 devxoul

I solved this problem.

this is the problem with '[Carte] Post Script'. the script has clean up ruby code script code, so before Process your info.plist, it removes anyway all of your framework, dependencies items.

you can remove the '[Carte] Post Script' Execution at build phase in xproject settings.

[Carte] Pre Script already has Delete command, so you don't need to worry about items duplicate problem.

I appreciate @devxoul 's Carte plugin.

dogfoots avatar Nov 19 '19 02:11 dogfoots