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

How can I solve the error 'ld: library not found for -lRNSVG-tvOS'? #375

Closed
chanhyeoni opened this issue Jun 18, 2017 · 4 comments
Closed

Comments

@chanhyeoni
Copy link

I may make this post in a wrong place, but I will try.

I would like to show a chart using react-native-pathjs-chart and victory-native, but somehow I get this following error every time I run react-native run-ios

screen shot 2017-06-18 at 3 17 57 pm

According to the error file, it seems to me that there is an issue with linking the svg library. Or am I missing something here?

I use the following versions
react-native-svg: 5.2.0
react-native: 0.45.1
react:16.0.0-alpha.12

And my index.ios.js code looks like this.

import React, { Component } from 'react';
import { AppRegistry, Text, StyleSheet, View, Button } from 'react-native'
import { StackNavigator} from 'react-navigation';
import { Radar } from 'react-native-pathjs-charts';

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#f7f7f7',
  },
});

export default class Prototype1 extends Component {

  // static navigationOptions = ({ navigation }) => ({
  //   title: `Radar - Basic`,
  // });

  render() {

    let data = [{
      "speed": 74,
      "balance": 29,
      "explosives": 40,
      "energy": 40,
      "flexibility": 30,
      "agility": 25,
      "endurance": 44
    }]

    let options = {
      width: 290,
      height: 290,
      margin: {
        top: 20,
        left: 20,
        right: 30,
        bottom: 20
      },
      r: 150,
      max: 100,
      fill: "#2980B9",
      stroke: "#2980B9",
      animate: {
        type: 'oneByOne',
        duration: 200
      },
      label: {
        fontFamily: 'Arial',
        fontSize: 14,
        fontWeight: true,
        fill: '#34495E'
      }
    }

    return (
      <View style={styles.container}>
        <Radar data={data} options={options} />
      </View>
    );
  }
  }
}


AppRegistry.registerComponent('Prototype1', () => Prototype1);

Please let me know if I should look at something else other than the linking

@ronal2do
Copy link

  • 1

@hellomaya
Copy link

Temporary solution, use Xcode to open the project, and then remove this lib at Linked Framework and Library section.

@magicismight
Copy link
Collaborator

Fixed in latest version

@msand
Copy link
Collaborator

msand commented Jan 17, 2018

This is caused by a bug in react-native link, fix will be merged soon: facebook/react-native#13783

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

5 participants