Skip to content
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

Create Today widget with Cocoapods #30

Open
Under-Warz opened this issue Feb 25, 2019 · 4 comments
Open

Create Today widget with Cocoapods #30

Under-Warz opened this issue Feb 25, 2019 · 4 comments

Comments

@Under-Warz
Copy link

Under-Warz commented Feb 25, 2019

Hi,

For those who have some issues to create a Today Widget and link it to use React Native in the widget, here is the missing parts.

  1. Follow up this wonderful Medium article => https://medium.com/@davidskaarup/add-ios-today-widget-to-your-react-native-app-ed9c9b601cc
  2. In step 4. Add New Run Script Phase, replace the script with the updated path for react 0.58
export NODE_BINARY=node
../node_modules/react-native/scripts/react-native-xcode.sh
  1. Edit your Podfile to get something like this :
target 'MainApp' do
 ... pods with React...

  target 'TodayWidget' do
    inherit! :search_paths
  end
end

Tada!

@stefanoTron
Copy link

thanks for this!
But I'm getting a compilation error:
Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_RCTRootView", referenced from: objc-class-ref in TodayViewController.o "_OBJC_CLASS_$_RCTBundleURLProvider", referenced from: objc-class-ref in TodayViewController.o ld: symbol(s) not found for architecture x86_64

Did anyone encounter this as well?

@magrinj
Copy link

magrinj commented Oct 22, 2019

@Under-Warz Same problem as @littletower for me, do you have any solution ?
I'm stocked with these errors, as react-native native now use auto-link and cocoapods workspace by default

@MaxToyberman
Copy link
Contributor

any solution?

@MaxToyberman
Copy link
Contributor

@magrinj @littletower @Under-Warz , it is finally working, you can follow this video.
https://youtu.be/23R3HxnHk3A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants