CleverTap / clevertap-geofence-ios

CleverTap iOS Geofence SDK
MIT License
8 stars 3 forks source link

Same PrivacyInfo.xcprivacy file name is causing 'Multiple commands produce PrivacyInfo.xcprivacy' error #15

Open fatinfarzanaazizan opened 6 months ago

fatinfarzanaazizan commented 6 months ago

Hi, it seems that having the same file name: PrivacyInfo.xcprivacy from clevertap geofence sdk and our local app project is throwing error as below:

Multiple commands produce '/Users/app/PrivacyInfo.xcprivacy'

There's a workaround where we can download the source code and modify the resource path in podspec (tried it out and it works fine) but I would like to avoid this.

Hope you guys can have a look at it and let me know if more details are required. Thanks

Steps to reproduce:

  1. Create a PrivacyInfo.xcprivacy file in project file
  2. pod install (where podfile contains CleverTap-Geofence-SDK)
  3. build app

Actual Result: Xcode fails to build with error Multiple commands produce '/Users/app/PrivacyInfo.xcprivacy'

Clevertap sdks in podfile:

    pod "CleverTap-iOS-SDK", '~> 5.1.1', :modular_headers => true, :inhibit_warnings => true
    pod 'CleverTap-Geofence-SDK', :inhibit_warnings => true
akashvercetti commented 6 months ago

@fatinfarzanaazizan We will be releasing a hotfix for this. In the meantime could you try out the branch with the fix yourself?

pod 'CleverTap-Geofence-SDK', :git => 'https://github.com/CleverTap/clevertap-geofence-ios.git', :branch => 'task/SDK-3766-geofence-xcprivacy-fix'

fatinfarzanaazizan commented 6 months ago

@fatinfarzanaazizan We will be releasing a hotfix for this. In the meantime could you try out the branch with the fix yourself?

pod 'CleverTap-Geofence-SDK', :git => 'https://github.com/CleverTap/clevertap-geofence-ios.git', :branch => 'task/SDK-3766-geofence-xcprivacy-fix'

Hi @akashvercetti , tried it out with the branch above in podfile. Able to build and works great. Thanks