NativeScript / plugins

@nativescript plugins to help with your developments.
https://docs.nativescript.org/plugins/index.html
Apache License 2.0
190 stars 107 forks source link

[NativeScript/nativescript-ui-charts] [IOS] [NS 8.5.3] Command xcodebuild failed with exit code 65 #483

Closed vicmasa closed 1 year ago

vicmasa commented 1 year ago

Hi.

We use a lot of graphics in the apps, but they stopped working on IOS with the new version of Nativescript 8.5.3. We wrote here to the plugin creators repository [NativeScript/nativescript-ui-charts], but no responses. We would like to know what alternatives we have to be able to use graphics in Nativescript.

Thanks.

Which platform(s) does your issue occur on?

OS: macOS 13.3.1
CPU: (8) arm64 Apple M1 Pro
Shell: /bin/zsh
node: 19.8.1
npm: 9.5.1
nativescript: 8.5.3

# android
java: 11.0.17
ndk: Not Found
apis: Not Found
build_tools: Not Found
system_images: Not Found

# ios
xcode: 14.3/14E222b
cocoapods: 1.12.1
python: 2.7.18
python3: 3.9.6
ruby: 2.7.8
platforms: 
  - DriverKit 22.4
  - iOS 16.4
  - macOS 13.3
  - tvOS 16.4
  - watchOS 9.4

Dependencies

"dependencies": {
  "@nativescript/core": "~8.5.0",
  "@nativescript/theme": "~3.0.2",
  "@nativescript/ui-charts": "^0.2.4"
},
"devDependencies": {
  "@nativescript/android": "8.5.0",
  "@nativescript/ios": "8.5.1",
  "@nativescript/webpack": "~5.0.14"
}
omarjavierr277 commented 1 year ago

Yo tambien tengo el mismo problema

ludav commented 1 year ago

Same probleam in NS v8.5.3, I can't believe there isn't a solution for this problem yet...

NathanWalker commented 1 year ago

Hi @vicmasa @ludav @omarjavierr277 give this a try:

  1. Download this: https://drive.google.com/file/d/114OB1_wOFVOLiWYdMm57V7IHk6AyltXT/view?usp=sharing Place the nativescript-ui-charts-0.4.0.tgz file in the root of your project directory.

  2. Modify package.json to include these (if come across this issue for ui-charts alone, can disregard google-maps, just making mention here since when in use with M1/M2 arm64 machines, want to use 1.5.0 or higher, based upon stack shared in other referenced issue):

"@nativescript/ui-charts": "file:nativescript-ui-charts-0.4.0.tgz",
"@nativescript/google-maps": "^1.5.0"
  1. Modify App_Resources/iOS/build.xcconfig to include at least this line:
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
  1. Modify (add this file if doesn't exist) App_Resources/iOS/Podfile to look like this:
platform :ios, '13.0'

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
      config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
    end
  end
end
  1. Ensure run ns clean

  2. Now run.

If works for you, we'll publish a @nativescript/ui-charts 0.4.0 release tomorrow.

NathanWalker commented 1 year ago

@nativescript/ui-charts 0.4.0 was published - let us know if further issue.

The source was moved to a workspace for better maintainability here: https://github.com/NativeScript/ui-kit

vicmasa commented 1 year ago

Thank you @NathanWalker , I am very grateful for your help, I was able to start the project, although some details remain, such as the dataLabel and the color, they do not work on IOS, even testing the documentation sent, I attach the detail here.

NathanWalker commented 1 year ago

Excellent! thanks @vicmasa we'll close this one and we'll continue on the other report, thanks for sample repos - that will help a lot!