Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all 16569 articles
Browse latest View live

How do I make my React Native module automatically add an entry to a project's Podfile after running react-native link?

$
0
0

I want to create a React Native module that can be installed using

npm install --save react-native-my-module
react-native link
cd ios && pod install

Using React Native 0.61.2 and a few required SDKs


  1. Followed the instructions here to create a basic React Native module.

  2. Installed the module using npm install --s 'path to my-module'

  3. Ran react-native link
  4. Installed the pod with cd ios && pod install

I saw my pod being successfully installed.


The default native module skeleton sets up a method called sampleMethod that I invoke using

var myModule = NativeModules.MyModule;
console.log(myModule.sampleMethod());

But I get the following error message

TypeError: Cannot read property 'sampleMethod' of undefined

To fix the error I have to manually link the module with react-native link my-module but then React Native complains

error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually:

- react-native-my-module (to unlink run: "react-native unlink react-native-my-module")

What am I missing here? Do I have to manually link the module or is there a configuration file I can edit somewhere to avoid that?


How to prevent Reload from being disabled with React Native emulator

$
0
0

Frequently when I'm using the iOS emulator with React Native, when I change code it will trigger an error, and when I press cmd R it will not reload the way it usually does. Sometimes I'm still able to press cmd D which brings up the developer menu, and press Reload from there, and sometimes nothing works and I have to close and reload the emulator manually. Does anyone have any insight into why this happens, and how to prevent it?

0.59.9 => 0.61.2 - Auto-linking "Native Modules" fails for both iOS and Android "npx --quiet react-native config" returns empty

$
0
0

i am in the middle of upgrading from 0.59.9 => 0.61.2.

But i am unable to install Pods or run the app on Android/iOS Emulator.

After debugging a bit, it seems like its the following command that fails for iOS (config unreckognized):

IO.popen("npx --quiet react-native config") do |data|

for Android (results returns null/empty):

def command = "${npx} --quiet react-native config"
  • Both found in @react-native-community/cli-platform-android // ios

running the command manually works just fine.

The error when trying to run pod install:

enter image description here

And in Android i am getting the following error when running react-native run-android: Android Error

How to dismiss a React Native RCTRootView back to a Native ViewController

$
0
0

I'm creating an app to integrate react-native with an existing Swift app.

I've looked into similar issues:

While following different tutorials:

And the official docs

The problem is: all of them are outdated (but the docs). Most of them use the legacy Navigation rather than Stack Navigator. One of the tutorials (the one with an asterisk) shows how to dismiss the React Native app back to the Native app using the rootTag of the app, but again, this was done with the legacy Navigation.

If I try to do the same, I'm not able to see the props from my app.

I have a single Storyboard with a Button inside that when clicked calls this UIViewController:

ButtonController

import Foundation
import UIKit
import React

class ButtonController: UIViewController  {
    @IBOutlet weak var button: UIButton!

    @IBAction func buttonClicked(_ sender: Any) {
        let data:[String : String] = ["onNavigationStateChange": "{handleNavigationChange}",
                                      "uriPrefix":"/app"];
        let rootView = MixerReactModule.sharedInstance.viewForModule("ReactNativeApp", initialProperties: data)

        let viewController = UIViewController()
        viewController.view = rootView
        self.present(viewController, animated: true, completion: nil)
    }
}

And when I start the app I can see this:

2019-10-23 10:29:30.021 [info][tid:com.facebook.react.JavaScript] Running "ReactNativeApp" with {"rootTag":1,"initialProps":{"uriPrefix":"/app","onNavigationStateChange":"{handleNavigationChange}"}}

But when I try to access the this.props property on React Native code I get undefined.

index.js

import HomeScreen from './components/HomeScreen'
import {AppRegistry} from 'react-native';
import {createAppContainer} from 'react-navigation';
import {createStackNavigator} from 'react-navigation-stack';

const MainNavigator = createStackNavigator({
  Home: {screen: HomeScreen}
}, {
  initialRouteName: 'Home'
})

const NavigationApp = createAppContainer(MainNavigator);

AppRegistry.registerComponent('ReactNativeApp', () => NavigationApp)

console.log("NANANA1", this)
console.log("NANANA2", this.routeName)
console.log("NANANA3", MainNavigator)
console.log("NANANA4", MainNavigator.props)
console.log("NANANA5", NavigationApp)
console.log("NANANA6", NavigationApp.props)

export default NavigationApp

HomeScreen.js

import React from 'react';
import {Text, View, Button, NativeModules} from 'react-native';

var RNBridge = NativeModules.RNBridge;

export default class HomeScreen extends React.Component {
    static navigationOptions = {
      headerTitle: () => (
        <Text>'Welcome'</Text>
      ),
      headerLeft: () => (
        <Button title="Dismiss" onPress={() => {
          console.log("WOLOLO: ", RNBridge)
          console.log("ROGAN: ", this._reactInternalFiber.tag)
          RNBridge.dismissPresentedViewController(this._reactInternalFiber.tag)
          // RNBridge.dismissPresentedViewController(1)
        }}/>
      )
    };
    render() {
      console.log('KIKIKI', this._reactInternalFiber.tag)
      console.log("MMMMMMM: ", this.props)
      return (
        <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
          <Text>Home Screen</Text>
        </View>
      );
    }
}

These are the 2 files that I use in RN to generate my View. I've tried many things to get the rootTag value, and the only one that seems to provide this value is (tag and rootTag on XCode are the same (1))

this._reactInternalFiber.tag

But I don't know how to send these values to my headerLeft method to use the same tag so that when I press the Dismiss button it calls the Swift code for dismissPresentedViewController.

How can I dismiss my VC effectively? Or at least get the rootTag being passed from Swift to my headerLeft() method?

I'm using these versions of react-native:

react-native-cli: 2.0.1
react-native: 0.61.2

How to open an website inside the react-native app(Android and iOS)

$
0
0

I need to open the website inside my react-native app. Needs to work for both iOS and Android

Pick multiple images in react native Expo with Imagepicker

$
0
0

It seems like Expo only supports imagepicker for selecting one image rather than multiple images. Is there any way to pick multiple images without ejecting expo or starting new react-native-init?

Cannot run react-native app directly on iPhone (deployment target errors)

$
0
0

The problem

When I run react-native in Simulator it works fine. I am now trying to run it on my iPhone directly connected to my MacBook but issues are coming up. There are several warnings that say the Deployment Target is set to 7.0.

Where exactly is this being set? IS it being set in the libraries that I am using? How do I get around this?

Similar information I have found that do not seem to be duplicates of this issue include:

  • People having issues with the simulator (the simulator is working fine for me)
  • Suggestions for people to use the Legacy Build system in XCode (which others are saying is not a good idea).

So, what exactly is causing this issue and what do I do to fix it so that I can run the app on my physical iPhone device?

The error messages:

ThePrompt$ react-native run-ios --device "Fred’s iPhone"

warn The following packages use deprecated "rnpm" config that will stop working from next release:
  - react-native-zip-archive: https://github.com/mockingbot/react-native-zip-archive
  - rn-fetch-blob: https://npmjs.com/package/rn-fetch-blob Please notify their maintainers about it. You can find more details at https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide. 
info Found Xcode workspace "TestAppApp07.xcworkspace" 
info Building (using "xcodebuild -workspace TestAppApp07.xcworkspace -configuration Debug -scheme TestAppApp07 -destination id=1e8ce3b4030eadba1161bda6bc1109b1e215f1ca -derivedDataPath build/TestAppApp07") 
....................... 
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening TestAppApp07.xcworkspace. Run CLI with 
--verbose flag for more details. 
User defaults from command line:
    IDEDerivedDataPathOverride = /opt/TestAppApp07/ios/build/TestAppApp07

note: Using new build system
note: Planning build 
note: Constructing build description 
Build system information 
error: Signing for "TestAppApp07Tests" requires a development team. Select a development team in the project editor. (in target 'TestAppApp07Tests')

Build system information 
error: Signing for "TestAppApp07" requires a development team. Select a development team in the project editor. (in target 'TestAppApp07')

Build system information
warning: The iOS deployment target is set to
7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.4.99. (in target 'RNFS')

Build system information
warning: The iOS deployment target is set to
7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.4.99. (in target 'RNGestureHandler')

Build system information
warning: The iOS deployment target is set to
7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.4.99. (in target 'RNScreens')

Build system information
warning: The iOS deployment target is set to
7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.4.99. (in target 'RNSound')


2019-08-15 00:01:44.888 xcodebuild[36925:1330679]  DTDeviceKit: deviceType from 1e8ce3b4030eadba1161bda8ac1109b1e215f1us was NULL
2019-08-15 00:01:44.927 xcodebuild[36925:1330675]  DTDeviceKit: deviceType from 1e8ce3b4030eadba1161bda8ac1109b1e215f1us was NULL
** BUILD FAILED **

The issue?

It seems that React Native is only supporting a deployment target of 7.0. However, the newer version of XCode no longer has 7.0 as a target option. The lowest target in new versions of XCode is 8.0.

Legacy Build?

Some of the issues I see say I can use Legacy Build instead. However, I am wondering if this is will cause any other issues.

React-native: How to copy file from ios project folder?

$
0
0

I have files in assets folder which is created in Xcode under my_project/assets. I can normally access file in my template WebView with:

source={uri:'ICF-Package/ICFPackage/index.html'}

but I can't copy this file to LibraryDirectoryPath with react-native-fs:

RNFS.copyFile('.ICF-Package/ICFPackage/index.html', RNFS.LibraryaDirectory + '/index.html').then((result) => console.log('DONE')).catch((error) => console.log(error, 'ERROR'));

Please help me with this.


Mapping of React Native components in iOS

$
0
0

We're trying to do automated testing of React Native application. For that, we want to figure out which React Native component maps to what iOS components. So far I can see that:

  • Image (React) maps to RCTImageView/UIImageView (iOS)
  • ScrollView (React) maps to RCTCustomScrollView/UIScrollView (iOS)

What about TouchableOpacity and View? How is that rendered on iOS? Where can I find a full list of these mappings?

Xcode 11 Upgrade | Could not find iPhone X simulator | XRPackageModel 9.0.omo

$
0
0

Anyone else getting this since upgrading from Xcode 10.3 to Xcode 11 when running react-native run-ios and any idea to get back up and running?

CoreData: annotation:  Failed to load optimized model at path '/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Frameworks/InstrumentsPackaging.framework/Versions/A/Resources/XRPackageModel.momd/XRPackageModel 9.0.omo'
error Could not find iPhone X simulator

How to open email client from email id provided in content of React-Native WebView?

$
0
0

Implemented a webview in react-native. if any normal URL is found in webview content then its highlighted and on the click it will redirect to url. But if in case any EmailId is found in the content, it is highlighted but on click its giving error. Want to open an email client on the device?

I tried: 'mailto: tester@gmail.com'

Hello. Do you want to view page 2 ?

if a valid url is present like:

Hello. Do you want to view page 2 ?

but if email is present like:

Hello. Do you want to view page 2 ?

It's giving error.

We want to open an email client when the user clicks on the redirection link. Please Suggest.

How can I play a native ios Keyboard Touch sound with React-Native?

$
0
0

The Question

I have a custom keyboard set up (it's a score tracker for a dart game app). What I'm missing is how can I play the iOS sounds like when you write a message in iMessages for example?

I could not find any help for this question what so ever. Not in the docs.

Do I really have to use this "early alpha" package "react-native-sounds" => Download this touch sound somewhere and play that sound onPress? Does react-native not provide this, or am I missing something?

react-native run-ios can not find any simulator

$
0
0

I have been facing an issue where 'react-native run-ios' can not start, regardless of the simulator I add to the --simulator argument. XCode has the correct location for the 'command line tools'

I am always getting the error: Could not find iPhone X simulator

Error: Could not find iPhone X simulator
    at resolve (/Users/eric/.../swim/node_modules/react-native/local-cli/runIOS/runIOS.js:149:13)
    at new Promise (<anonymous>)
    at runOnSimulator (/Users/eric/.../swim/node_modules/react-native/local-cli/runIOS/runIOS.js:134:10)
    at Object.runIOS [as func] (/Users/eric/.../swim/node_modules/react-native/local-cli/runIOS/runIOS.js:106:12)
    at Promise.resolve.then (/Users/eric/.../swim/node_modules/react-native/local-cli/cliEntry.js:117:22)

react-native info

>   React Native Environment Info:
>     System:
>       OS: macOS 10.14.2
>       CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
>       Memory: 6.76 GB / 32.00 GB
>       Shell: 3.2.57 - /bin/bash
>     Binaries:
>       Node: 10.15.0 - /usr/local/bin/node
>       Yarn: 1.13.0 - /usr/local/bin/yarn
>       npm: 6.4.1 - /usr/local/bin/npm
>     SDKs:
>       iOS SDK:
>         Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
>     IDEs:
>       Android Studio: 3.1 AI-173.4819257
>       Xcode: 10.1/10B61 - /usr/bin/xcodebuild
>     npmPackages:
>       react: 16.6.3 => 16.6.3 
>       react-native: 0.57.8 => 0.57.8 
>     npmGlobalPackages:
>       create-react-native-app: 1.0.0
>       react-native-cli: 2.0.1
>       react-native-git-upgrade: 0.2.7

Xcode generating Generic Xcode Archive instead of iOS app

$
0
0

I'm working on a React-Native iOS app. I've previously been able to make an iOS app archive and distribute it to the Apple Store, but recently I tried to do it and it only generates a Xcode generic archive.

This is my configuration:

enter image description here

enter image description here

enter image description here

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>ArchiveVersion</key>
    <integer>2</integer>
    <key>CreationDate</key>
    <date>2019-10-24T22:04:15Z</date>
    <key>Name</key>
    <string>BexfyStore</string>
    <key>SchemeName</key>
    <string>BexfyStore</string>
</dict>
</plist>

I also tried to do the Skip Install but I couldn't find it.

How to import framework file without cocoapods?

$
0
0

My project is React Native and I try to add native framework file to my project when I clean and build project I get the error

Framework not found BRPtouchPrinterLit

Here is what I try

Step 1:

drag the framework file under my Frameworks folder and then check Link Binary With Libraries include it.

enter image description here

Step 2:

type $(PROJECT_DIR)/Frameworks/ on Framework Search Paths:

enter image description here

then Clean and Build the project get the error

ld: warning: directory not found for option '-F/Users/morton.hsu/PureIosProject/testIosBrother/ios/Frameworks/'
ld: framework not found BRPtouchPrinterKit
clang: error: linker command failed with exit code 1 (use -v to see invocation)

What step I miss it?

I download the sdk from this link https://support.brother.com/g/b/agreement.aspx?dlid=dlfp100621_000&c=us_ot&lang=en&redirect=on


Cocoapods error: cannot load such file -- macho

$
0
0

I have an error when I try to install pod. I try to uninstall completely cocoapods and install it again but it doesn't work. I have no idea how to fix it I tried to install macho but it doesn't help. It looks ok until Generating Pods project then it crashes pod version 1.5.3

pod install


Analyzing dependencies
Downloading dependencies
Using Adjust (4.8.5)
Using Crashlytics (3.10.7)
Using Fabric (1.7.11)
Using Google-Mobile-Ads-SDK (7.33.1)
Using GoogleAds-IMA-iOS-SDK (3.7.3)
Generating Pods project

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

### Command

```
/Users/salek/.rvm/gems/ruby-2.2.4/bin/pod install
```

### Report

* What did you do?

* What did you expect to happen?

* What happened instead?


### Stack

```
   CocoaPods : 1.5.3
        Ruby : ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-darwin15]
    RubyGems : 2.6.10
        Host : Mac OS X 10.14 (18A391)
       Xcode : 9.4.1 (9F2000)
         Git : git version 2.16.2
Ruby lib dir : /Users/salek/.rvm/rubies/ruby-2.2.4/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 799ce6567dfe5da62ecdc3a7ba975737c7926347
```

### Plugins

```
cocoapods-deintegrate : 1.0.2
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.3.1
cocoapods-try         : 1.1.0
```

### Podfile

```ruby
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
platform :ios, '9.0'
project 'BunteMobile.xcodeproj'
target 'BunteMobile' do
  # Comment this line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for BunteMobile
  pod 'Adjust', '~> 4.8.3'
  pod 'Google-Mobile-Ads-SDK'
  pod 'GoogleAds-IMA-iOS-SDK', '~> 3.7'
  pod 'Fabric', '~> 1.7.0'
  pod 'Crashlytics', '~>  3.9'

  target 'BunteMobileTests' do
    inherit! :search_paths
    # Pods for testing
  end

end
```

### Error

```
LoadError - cannot load such file -- macho
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/sandbox/file_accessor.rb:432:in `rescue in dynamic_binary?'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/sandbox/file_accessor.rb:427:in `dynamic_binary?'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/sandbox/file_accessor.rb:164:in `block in vendored_dynamic_frameworks'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/sandbox/file_accessor.rb:163:in `select'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/sandbox/file_accessor.rb:163:in `vendored_dynamic_frameworks'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/sandbox/file_accessor.rb:172:in `vendored_static_frameworks'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/sandbox/file_accessor.rb:238:in `vendored_static_artifacts'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb:56:in `block in generate'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb:56:in `any?'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb:56:in `generate'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb:39:in `save_as'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator/target_installer.rb:112:in `update_changed_file'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:96:in `block in create_xcconfig_file'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:93:in `each'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:93:in `create_xcconfig_file'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:18:in `block in install!'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:142:in `message'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator/aggregate_target_installer.rb:14:in `install!'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:181:in `block (2 levels) in install_libraries'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:179:in `each'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:179:in `block in install_libraries'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:142:in `message'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:167:in `install_libraries'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:65:in `generate!'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:184:in `block in generate_pods_project'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:64:in `section'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:183:in `generate_pods_project'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:119:in `install!'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/command/install.rb:41:in `run'
/Users/salek/.rvm/gems/ruby-2.2.4@global/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:52:in `run'
/Users/salek/.rvm/gems/ruby-2.2.4/gems/cocoapods-1.5.3/bin/pod:55:in `<top (required)>'
/Users/salek/.rvm/gems/ruby-2.2.4/bin/pod:22:in `load'
/Users/salek/.rvm/gems/ruby-2.2.4/bin/pod:22:in `<main>'
/Users/salek/.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:24:in `eval'
/Users/salek/.rvm/gems/ruby-2.2.4/bin/ruby_executable_hooks:24:in `<main>'
```

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=cannot+load+such+file+--+macho&type=Issues

If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods...
 - LoadError - cannot load such file -- macho
   https://github.com/CocoaPods/CocoaPods/issues/7849 [closed] [7 comments]
   16 hours ago

 - LoadError - cannot load such file -- macho
   https://github.com/CocoaPods/CocoaPods/issues/7867 [closed] [17 comments]
   5 weeks ago

 - LoadError - cannot load such file -- macho
   https://github.com/CocoaPods/CocoaPods/issues/7864 [closed] [2 comments]
   21 Jun 2018

and 5 more at:
https://github.com/cocoapods/cocoapods/search?q=cannot%20load%20such%20file%20--%20macho&type=Issues&utf8=✓

Cocoapods always install old React (0.11.0)

$
0
0

I have a problem when I run pod install Pod always downgrade React Installing React 0.11.0 (was 0.55.4)

my pod file:

# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
platform :ios, '9.0'
project 'BunteMobile.xcodeproj'
target 'BunteMobile' do
  # Comment this line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for BunteMobile
  pod 'Adjust', '~> 4.8.3'
  pod 'Google-Mobile-Ads-SDK'
  pod 'GoogleAds-IMA-iOS-SDK', '~> 3.7'
  pod 'Fabric', '~> 1.7.0'
  pod 'Crashlytics', '~>  3.9'

  pod 'lottie-ios', :path => '../node_modules/lottie-ios'

  pod 'lottie-react-native', :path => '../node_modules/lottie-react-native'

  target 'BunteMobileTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

I read about some solution when I defined react folder from node_modules but this solution doesn't work for me too.

I put into podfile this:

pod 'yoga', path: './node_modules/react-native/ReactCommon/yoga'
pod 'React', :path => '../node_modules/react-native'

but still doesn't work. Downgrade disappear but when I try to build it, I have this error:

/node_modules/react-native/React/Base/RCTConvert.h:17:9: could not build module 'yoga'

I tried the same profile as official RN doc (https://facebook.github.io/react-native/docs/integration-with-existing-apps.html) but still same error.


Solution

I added this into my podfile:

# Pods for React-Native start
  pod 'React', :path => '../node_modules/react-native'
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'

how to find jailbroken or rooted devices in application using react native and expo [on hold]

$
0
0

I am looking for the code/ library which can give me result whether my device is jailbroken/rooted or not. I checked jail Monkey and is device rooted libraries. But I can't eject my project to use this libraries. Do we have any alternate solution to detected the jailbroken or rooted device in react native? I am pretty new to react native. Any help appreciated!

How to check a user's phone number without using third-party services

$
0
0

I need to check a user's phone number who register on my app. I wanted to use 'Facebook Account Kit' to do that, but recently Facebook deprecated 'Account Kit'.

Is there a way to check a user's phone number for free without going through third party services or something like 'Facebook Account Kit' ?

React Native list of active applications on the phone and blocking the launch of another application

$
0
0

How to get a list of running applications on a phone in a react native or expo? How can I force the launch of another of an application? Is this even possible? I saw there are parental control applications with similar functionality ...

Viewing all 16569 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>