matejkriz / react-native-today-widget

iOS Today Widget in React Native
Other
418 stars 24 forks source link

Unable to use widget on iOS device #34

Open tanthanhtran2708 opened 5 years ago

tanthanhtran2708 commented 5 years ago

Description

I followed instruction and built project successfully. I also checked the 3D touch on my device, it worked well, i added it to the widgets on real device but it was "Unable to load" even it was just a widget with Hello React Native text view

Steps to reproduce

  1. React-native install react-native-today-widget.
  2. Delete all the libRCT... and then add them again with the JavaScriptCore.framework also ( if i don't do this, it'll raise errors that Xcode can't find all the libRCT... libraries)
  3. Change the bundle identifier of TodayWidgetExtension to org.reactjs.native.example.MyProject.TodayWidgetExtension (if not it will raise error: Embedded binary's bundle identifier is not prefixed with the parent app's bundle identifier).
  4. Open the project target -> build phases -> in the Embed App Extensions -> Checked the Copy only when installing (if not it'll raise an error : Failed to set plugin placeholders for org.react.native.example.MyProject

System configuration

When i run the react-native log-ios: un 25 15:20:47 thanhtans-MacBook-Pro com.apple.CoreSimulator.SimDevice.A03980F8-1C89-418A-BCAB-361E840F6EDB[87375] (com.apple.WebKit.WebContent) : Unknown key for Boolean: EnableTransactions Jun 25 15:20:47 thanhtans-MacBook-Pro com.apple.CoreSimulator.SimDevice.A03980F8-1C89-418A-BCAB-361E840F6EDB[87375] (com.apple.WebKit.WebContent) : Unknown key for Boolean: EnablePressuredExit Jun 25 15:20:47 thanhtans-MacBook-Pro com.apple.CoreSimulator.SimDevice.A03980F8-1C89-418A-BCAB-361E840F6EDB[87375] (com.apple.backboard.display.archive) : Unknown key for Boolean: EnableTransactions Jun 25 15:20:47 thanhtans-MacBook-Pro com.apple.CoreSimulator.SimDevice.A03980F8-1C89-418A-BCAB-361E840F6EDB[87375] (com.apple.backboard.display.archive) : Unknown key for Boolean: EnablePressuredExit Jun 25 15:20:47 thanhtans-MacBook-Pro com.apple.CoreSimulator.SimDevice.A03980F8-1C89-418A-BCAB-361E840F6EDB[87375] (com.apple.imfoundation.IMRemoteURLConnectionAgent) : Unknown key for Boolean: EnableTransactions Jun 25 15:20:47 thanhtans-MacBook-Pro com.apple.CoreSimulator.SimDevice.A03980F8-1C89-418A-BCAB-361E840F6EDB[87375] (com.apple.imfoundation.IMRemoteURLConnectionAgent) : Unknown key for integer: _DirtyJetsamMemoryLimit Jun 25 15:20:47 thanhtans-MacBook-Pro com.apple.CoreSimulator.SimDevice.A03980F8-1C89-418A-BCAB-361E840F6EDB[87375] (com.apple.imfoundation.IMRemoteURLConnectionAgent) : Unknown key for Boolean: EnablePressuredExit Jun 25 15:20:47 thanhtans-MacBook-Pro com.apple.CoreSimulator.SimDevice.A03980F8-1C89-418A-BCAB-361E840F6EDB[87375] (com.apple.uifoundation-bundle-helper) : Unknown key for Boolean: EnableTransactions Jun 25 15:20:47 thanhtans-MacBook-Pro com.apple.CoreSimulator.SimDevice.A03980F8-1C89-418A-BCAB-361E840F6EDB[87375] (com.apple.uifoundation-bundle-helper) : Unknown key for Boolean: EnablePressuredExit Jun 25 15:20:47 thanhtans-MacBook-Pro com.apple.CoreSimulator.SimDevice.A03980F8-1C89-418A-BCAB-361E840F6EDB[87375] (org.reactjs.native.example.BaseControlls.TodayWidgetExtension[87486]) : assertion failed: 18F132: launchd_sim + 63721 [4911879E-54AD-341A-9EEA-BD6E6DDD9DD6]: 0x16