transistorsoft / capacitor-background-fetch

Periodic callbacks in the background for both IOS and Android
78 stars 9 forks source link

No such module 'TSBackgroundFetch' #9

Closed mwilogis closed 2 years ago

mwilogis commented 2 years ago

Your Environment

Expected Behavior

No syntax errors in AppDelegate.swift

Actual Behavior

Xcode shows the error "No such module 'TSBackgroundFetch'" just besides the line "import TSBackgroundFetch"

import UIKit
import Capacitor
import TSBackgroundFetch

Steps to Reproduce

  1. follow https://github.com/transistorsoft/capacitor-background-fetch/blob/master/help/INSTALL-IOS.md
  2. Under the "AppDelegate.swift" it states to edit the file and insert "import TSBackgroundFetch"

Context

I'm setting up the ios app

Debug logs

As I'm not building it would be n/a.

Extra

When following the setup of the ios app, the documentation states it's required to follow this: https://github.com/transistorsoft/capacitor-background-fetch/blob/master/help/INSTALL-IOS.md#configure-background-capabilities

I'm unsure of how much I need to setup, as I'm just installing it for the first time:

When not using Background processing, do I need to do the following sections, "Configure Info.plist" and "AppDelegate.swift"? Not sure what is releated to not choosing to enable Background processing.

Kind regards

mwilogis commented 2 years ago

I will create the question in the private repository.

crhistianramirez commented 2 years ago

Were you able to resolve this? If so, could you share what you did?

thoechtl commented 2 years ago

I selected the TSBackgroundFetch Framework and checked the target membership checkbox. Now it works, event after de-selecting the checkbox. Signs and wonders still happen ... ;-)

Screenshot 2022-05-13 at 11 47 06