1

I've followed the migration instructions for updating to v8 of the Marketing Cloud SDK. Docs here: https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/get-started/get-started-migration.html

After following all the steps I am now getting an error that the module doesn't exist? enter image description here

enter image description here

enter image description here

I am still able to build and run the project though? Does anyone have any idea what could be causing this? I've tried with multiple versions of v8 and the issue always happens.

I came across this question which is similar but there seems to be no solution: Migration Issues from MarketingCloudSDK 7.6 to 8.0.1.

Clearing derived data and restarting XCode makes no difference. Due to this error I can't use auto complete for anything in the SDK and need to type it all out manually. This makes it hard to debug and also make me uncertain if the SDK is working as intended.

Does anyone have any ideas on how to fix this?

1 Answer 1

1

Please use MarketingCloudSDK 8.0.6 version and SFMCSDK 1.0.4. Before upgrading the versions, please remove the SPM cache which usually be in ~/Library/Caches/org.swift.swiftpm/ and also remove the xcode derived data.

If cocoapods is been used previously please uninstall the pod or if the SDK is added locally, there will be a reference to the Framework search path, which should be removed as well.

There is also a sample project which has the SPM setup which can be referred to.

Thanks, Prakashini

1
  • Can you share the link of the SPM sample project setup?
    – Leo Dabus
    Commented Jul 28, 2022 at 21:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .