3

While running the code after adding share extension

IOSDev_RKM
  • 41
  • 2
  • 4

5 Answers5

2

You must have different bundleIds for your project and extension.

Example:

  • App bundleId: com.companyName.appName
  • Extension bundleId: com.companyName.appName.extensionName

I got this error when I set one configuration file for my project and notification service.

I changed the notification service configuration file to the correct one and this fixed my problem. enter image description here

maxwell
  • 3,788
  • 6
  • 26
  • 40
1

Make sure you have properly set your bundle identifiers for your Main app target and extensions.

Rizwan Ahmed
  • 919
  • 13
  • 19
1

Enable Copy only when Installing

enter image description here

Azhar
  • 20,500
  • 38
  • 146
  • 211
0

Cleaning build folder solved the problem to me. In Xcode, while pressing alt on keyboard, choose Product from top menu and click on Clean Build Folder

Hossam Ghareeb
  • 7,063
  • 3
  • 53
  • 64
0

Making sure the configuration for Debug and Release mode is similar for both project and extension resolved this issue.enter image description here

uday kiran
  • 31
  • 4