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

Cannot build on iOS. Please help my problem #218

Closed
zeddjeong opened this issue Feb 19, 2018 · 3 comments
Closed

Cannot build on iOS. Please help my problem #218

zeddjeong opened this issue Feb 19, 2018 · 3 comments

Comments

@zeddjeong
Copy link

**XCode version : 9.2
React native version : 0.53.0
Please reffer my setting :

  1. Podfile

platform :ios, '9.0'
use_frameworks!
target 'drinkit' do
pod "yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
pod 'React', :path => '../node_modules/react-native' , :subspecs => [
'BatchedBridge', # Required For React Native 0.45.0+
'Core',
'ART',
'RCTImage',
'RCTNetwork',
'RCTLinkingIOS',
'RCTActionSheet',
# 'RCTAdSupport',
'RCTGeolocation',
'RCTPushNotification',
'RCTSettings',
'RCTVibration',
'RCTText',
'RCTWebSocket',
'DevSupport',
'tvOS'
# Add any other subspecs you want to use in your project
]
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
pod 'Firebase/Core'
pod 'Firebase/AdMob'
pod 'Firebase/Auth'
pod 'Firebase/Crash'
pod 'Firebase/Database'
pod 'Firebase/DynamicLinks'
pod 'Firebase/Firestore'
pod 'Firebase/Messaging'
#pod 'Firebase/RemoteConfig'
pod 'Firebase/Storage'

pod 'RNSVG', :path => '../node_modules/react-native-svg'
pod 'SwiftyJSON', git: 'https://github.com/SwiftyJSON/SwiftyJSON.git'
pod 'Charts', git: 'https://github.com/danielgindi/Charts.git'

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
end
end
end
#Chart-Wrapper Setting end
end

  1. package.json

"dependencies": {
"firebase": "^4.9.0",
"immutability-helper": "^2.6.4",
"immutable": "^3.8.2",
"native-base": "^2.3.7",
"react": "16.2.0",
"react-addons-update": "^15.6.2",
"react-native": "0.53.0",
"react-native-action-button": "^2.8.4",
"react-native-charts-wrapper": "^0.4.1",
"react-native-code-push": "^5.2.1",
"react-native-elements": "^0.19.0",
"react-native-fbsdk": "^0.7.0",
"react-native-firebase": "^3.2.4",
"react-native-google-signin": "^0.12.0",
"react-native-navigation": "^1.1.381",
"react-native-pathjs-charts": "0.0.33",
"react-native-star-rating": "^1.0.8",
"react-native-vector-icons": "^4.5.0",
"react-redux": "^5.0.6",
"redux": "^3.7.2",
"redux-actions": "^2.2.1",
"redux-logger": "^3.0.6",
"redux-saga": "^0.16.0"
}

  1. iOS Setting

2018-02-19 5 10 17

2018-02-19 5 22 59

2018-02-19 5 23 42

  1. Build Error

2018-02-19 5 25 50

2018-02-19 5 26 06

2018-02-19 5 26 13

2018-02-19 5 26 33

@delkant
Copy link

delkant commented Feb 19, 2018

Same problem here, with Charts '3.0.3' or any version of it. I am getting different errors depend on the version of Charts on my Podfile.

@kf729ik
Copy link

kf729ik commented Feb 20, 2018

same here!

@wuxudong
Copy link
Owner

wuxudong commented Feb 20, 2018

I think it related to this

Charts '3.0.3' use swift 3, and Chart '3.0.4' use swift 4.

In swift 3, the api is text.size(attributes: attributes),
and in swift 4, it is text.size(withAttributes: attributes)

according to your pod file, I think you are using Chart 3.0.4.

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