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

Build Error with XCode 8 & React-Native 0.35.0 #68

Open
xzyaoi opened this issue Nov 11, 2016 · 2 comments
Open

Build Error with XCode 8 & React-Native 0.35.0 #68

xzyaoi opened this issue Nov 11, 2016 · 2 comments

Comments

@xzyaoi
Copy link

xzyaoi commented Nov 11, 2016

Hi,

I am new to iOS developement and I am not sure how to install this library correctly.

I am using XCode 8.0 Mac OS X Sierra and React-Native 0.35.0. I followed Issue #65 but still got errors.


s
 'RCTConvert'                                                                                                                                         
                dataSet.valueTextColor = RCTConvert.uiColor(tmp["valueTextColor"].intValue);                                                          
                                         ^~~~~~~~~~                                                                                                   
/Users/Apple/Documents/code/foodie/node_modules/react-native-ios-charts/RNiOSCharts/chartDataHelpers.swift:798:39: error: use of unresolved identifier
 'RCTConvert'                                                                                                                                         
                dataSet.shadowColor = RCTConvert.uiColor(tmp["shadowColor"].intValue);                                                                
                                      ^~~~~~~~~~                                                                                                      
/Users/Apple/Documents/code/foodie/node_modules/react-native-ios-charts/RNiOSCharts/chartDataHelpers.swift:806:40: error: use of unresolved identifier
 'RCTConvert'                                                                                                                                         
                dataSet.neutralColor = RCTConvert.uiColor(tmp["neutralColor"].intValue);                                                              
                                       ^~~~~~~~~~                                                                                                     
/Users/Apple/Documents/code/foodie/node_modules/react-native-ios-charts/RNiOSCharts/chartDataHelpers.swift:810:43: error: use of unresolved identifier
 'RCTConvert'                                                                                                                                         
                dataSet.increasingColor = RCTConvert.uiColor(tmp["increasingColor"].intValue);                                                        
                                          ^~~~~~~~~~                                                                                                  
/Users/Apple/Documents/code/foodie/node_modules/react-native-ios-charts/RNiOSCharts/chartDataHelpers.swift:814:43: error: use of unresolved identifier
 'RCTConvert'                                                                                                                                         
                dataSet.decreasingColor = RCTConvert.uiColor(tmp["decreasingColor"].intValue);                                                        
                                          ^~~~~~~~~~                                                                                                  
                                                                                                                                                      
                                                                                                                                                      
                                                                                                                                                      
** BUILD FAILED **                                                                                                                                    
                                                                                                                                                      
                                                                                                                                                      
The following build commands failed:                                                                                                                  
                                                                                                                                                      
        CompileSwift normal x86_64 /Users/Apple/Documents/code/foodie/node_modules/react-native-ios-charts/RNiOSCharts/BarLineChartViewBaseExtension.s
wift                                                                                                                                                  
        CompileSwift normal x86_64 /Users/Apple/Documents/code/foodie/node_modules/react-native-ios-charts/RNiOSCharts/RNBarChartManager.swift        
        CompileSwift normal x86_64 /Users/Apple/Documents/code/foodie/node_modules/react-native-ios-charts/RNiOSCharts/RNHorizontalBarChartManager.swi
ft                                                                                                                                                    
        CompileSwift normal x86_64 /Users/Apple/Documents/code/foodie/node_modules/react-native-ios-charts/RNiOSCharts/RNBubbleChartManager.swift     
        CompileSwift normal x86_64 /Users/Apple/Documents/code/foodie/node_modules/react-native-ios-charts/RNiOSCharts/RNScatterChartManager.swift    
        CompileSwift normal x86_64 /Users/Apple/Documents/code/foodie/node_modules/react-native-ios-charts/RNiOSCharts/RNRadarChartManager.swift      
        CompileSwift normal x86_64 /Users/Apple/Documents/code/foodie/node_modules/react-native-ios-charts/RNiOSCharts/RNCandleChartManager.swift     
        CompileSwift normal x86_64 /Users/Apple/Documents/code/foodie/node_modules/react-native-ios-charts/RNiOSCharts/chartDataHelpers.swift         
        CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler                                                                        
(9 failures)                    

I followed the instructions in the README file, and i've searched it but i am still not sure how to solve this problem?

@xzyaoi xzyaoi changed the title Build Error Build Error with XCode 8 & React-Native 0.35.0 Nov 12, 2016
@adelamodwala
Copy link

+1 I'm getting similar issues ever since I updated to Swift 3.1

@xzyaoi
Copy link
Author

xzyaoi commented Nov 17, 2016

@adelamodwala I solved this problem by add the bridging header by myself, you can have a try but I am not pretty sure if it can solve it. If it is, please reply to this comment so that we could fix it.

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

2 participants