Closed joaonew closed 1 month ago
Hi @joaonew ,
It looks like you're linking the QRCode library multiple times against your app (the 4268 duplicate symbols).
I'm guessing that you've added QRCode via Cocoapods (ie. "pod 'DSF_QRCode'") in your comment. The second via Xcode dependencies ("installing the package dependencies through Xcode"). You should only use a single method for integrating QRCode into your app.
If you're already using Cocoapods to get React Native, then I'd suggest using Cocoapods only for installing QRCode.
Hope this helps.
I just threw together a very simple watchos app using cocoapods. It's using SwiftUI, but the same concept applies to React Native. Might give you some more insight into your own app.
The big note here is that QRCode is included via Cocoapods only. No Xcode package dependencies.
Thank you. I've decided to delete and redo all the configuration for watchOS to try to get it to work, I will give a close look in the project you shared, appreciated.
I just threw together a very simple watchos app using cocoapods. It's using SwiftUI, but the same concept applies to React Native. Might give you some more insight into your own app.
The big note here is that QRCode is included via Cocoapods only. No Xcode package dependencies.
How did add this cocoapods to your project? Can you break it down for me since adding it only to Podfile did not work for me.
Just adding the podfile isn't sufficient, you'll need to also run pod install
from within your project directory (in the terminal app). Have a look at the 'Get Started' section in the cocoapods documentation.
Are you planning to use Cocoapods for all your other dependencies, like React Native etc?
I did ran pod install
after adding the pod 'DSF_QRCode' in my Podfile, I was wondering if you ran any other commands like yarn add ... because I noticed in your Podfile you had the pod 'DSF_QRCode' under your main app target as well.
I strip all the new communication code from my iOS app (to talk to the watch) but this QRCode lib apparently doesn't let me run my iOS app in Xcode anymore.
For now I can only run pod install without errors if I run USE_FRAMEWORKS=static bundle exec pod install
, and even tho pod install is successful, when I run my iOS app in Xcode (already with the watchOS linked to it), I get:
Any sugestions?
The Sandbox error is related to an Xcode setting -- you need to set ENABLE_USER_SCRIPT_SANDBOXING
to 'No'
This is a common issue with Cocoapods and Xcode versions > 12.
If you look at the project that I attached you'll see it's set to NO
on the project targets too. I didn't have to do anything else here (ie. no yarn).
Note that I commented the line use_frameworks!
in my podfile, although uncommenting this line still produces a build that runs fine
Note that the attached demo app does NOT use React Native AT ALL. I've never used React Native myself so I have no understanding about the requirements of including a platform-specific component into a Reach Native app.
Thank you, that fixed the sandbox error.
Looks like they are never finished tho lol
Note that the attached demo app does NOT use React Native AT ALL. I've never used React Native myself so I have no understanding about the requirements of including a platform-specific component into a Reach Native app.
No worries, you helped a lot with your support!
Hello there,
I was able to implement this library in the native side with Swift and installing the package dependencies through Xcode, but when I try to run my iOS app (built with React Native), it does not recognize this library, which I believe I have to add to my Podfile to work.
By reading the issues here, I was able to get to this:
_target 'watchos Watch App' do platform :watchos, '7.0' pod 'DSFQRCode' end
Which allow me to successfully run
pod install
in my iOS project, but when I try to run my iOS app (in order to run the watchOS app where this library is been used), I get this error:Any ideas on why Im getting this?