truecaller / ios-sdk

Apache License 2.0
16 stars 17 forks source link

Multiple commands produce Assets.car in xcode11 #19

Open Ekulelu opened 5 years ago

Ekulelu commented 5 years ago

After I updated to xcode11, the new build system didn't work. An error occurred with below message "Multiple commands produce '~/Library/Developer/Xcode/DerivedData/LIKE-hgpysltcapxaaqbkjnoggrxhteud/Build/Products/Debug-iphoneos/xxx.app/Assets.car' "

I think the reason is "s.resources = [ "TrueSDK/**/Assets.xcassets"] " in podspec file, which will lead pod create a copy script like this "${PODS_ROOT}/TrueSDK/TrueSDK/External/Assets.xcassets". And the name of "Assets" is multiple with the main target's image xcassets.

I think you should remove the "s.resources = [ "TrueSDK/**/Assets.xcassets"] ", and put the Assets.xcassets into the "resource_bundles" tag, which will create a bundle to fold the assets.xcassets.

horseshoe7 commented 4 years ago

I also have experienced this and am currently trying to find a workaround.

horseshoe7 commented 4 years ago

Workaround: In Xcode you have to go into File > Workspace Settings... and set the build system to the legacy build system.

SandeepAggarwal commented 2 years ago

Hey, I am also facing the same issue. Could we fix this as @Ekulelu suggested?

mkaarthick commented 2 years ago

Did anyone resolve it?