-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find 'CapWatchContentView' in scope #35
Comments
You need to |
Apologies - I have updated my comment to highlight that I have tried this already. |
Additional Information - after adding the package dependency, I quit xcode and tried to build it again with RuntimeError - So something has gone wrong with the adding the package dependency? |
just to confirm, are you using Xcode 15? |
Yep, Xcode 15 |
so I just tried running the install instructions on a new cap project and encountered the same thing you have. This is happening because for some reason Xcode is now assuming everything inside an SPM is 'private' and that causes the things there to be out of scope. I'll need to make an update to the package to fix this. |
Thanks - is there an estimated timeframe for this fix? |
I'm hoping to get to it this week |
Is there any update on this? |
Appreciate this may be lower down on the list of priorities but we're also looking into adding Apple Watch functionality to our Capacitor app and this looks to be the ideal solution. Would be great to get an ETA if at all possible. Thanks 🙏 |
I understand if this isn't a priority ticket for you guys, but are you able to advise a rough timeframe for this fix? Just so I can make a decision on whether to look into alternative approaches. |
I should have a little time this week. So maybe this week, but I'm not promising anything |
Ok give version 0.1.11 a spin. I've also updated the README a little, in Step 6 of creating the watch app you need to add |
@giralte-ionic I tested your fix including the changes in step 6 in our Enterprise App and tried running
|
I'm sorry the cocoapod failed to publish. I have corrected this. Please try again. |
The error still persists with version
|
try removing your |
I'm sorry to bother you again, but I can't get it to work. I set up a completely new App with Ionic Capacitor & React, installed capacitor watch, executed the steps in your Readme and run into the error again. You can check out this repo if you like for reproduction. I'm using XCode 15.3 & MacOS Sonoma 14.4. Maybe this is an issue with the latest XCode version? A coworker of mine could reproduce the issue with that repo above & our production app as well. |
So I pulled your repo down and there are two problems:
Fixing these two things gets me a successful build. |
@JensUweB has this issue been resolved? |
I've followed the documentation up to step 7, my watchOS.swift file currently looks like this:
I'm receiving the error:
Cannot find 'CapWatchContentView' in scope
I can confirm the
capacitor/watch
plugin exists in mypackage.json
file. The only other thing I can think of that may (or may not) be relevant is that after I added the Capacitor Watch Swift Package from node modules, its name reads asiOS-capWatch-watch
instead ofCapWatch-Watch-SPM
.I have tried adding
import CapacitorWatch
above the@main
statement, but this also throws theNo such module 'CapacitorWatch'
error.The text was updated successfully, but these errors were encountered: