Skip to content

Compile Build failing for react-native 0.62 (IOS) #145

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

Closed
rahulkasana opened this issue Apr 6, 2020 · 16 comments · Fixed by #146
Closed

Compile Build failing for react-native 0.62 (IOS) #145

rahulkasana opened this issue Apr 6, 2020 · 16 comments · Fixed by #146
Assignees
Labels
enhancement New feature or request

Comments

@rahulkasana
Copy link

Bug

When running react-native run-ios build fails.

The following build commands failed:
CompileC /Users/rkasana/Library/Developer/Xcode/DerivedData/ZastOnmove-ghuhgjztjiovtxbhhzofecqaqfnv/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNDateTimePicker.build/Objects-normal/x86_64/RNDateTimePickerManager.o /Users/rkasana/Documents/onmove/NewLennon/lennon/node_modules/@react-native-community/datetimepicker/ios/RNDateTimePickerManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler

My podfile contains -
pod 'RNDateTimePicker', :path => '../node_modules/@react-native-community/datetimepicker/RNDateTimePicker.podspec'

Environment info

System:
OS: macOS 10.15.3
CPU: (4) x64 Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz
Memory: 168.34 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.12.0 - /usr/local/bin/node
Yarn: 1.19.1 - /usr/local/bin/yarn
npm: 6.11.3 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.8.4 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0
Android SDK:
API Levels: 23, 25, 27, 28, 29
Build Tools: 28.0.3, 29.0.2
System Images: android-29 | Google APIs Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 10.0/10A255 - /usr/bin/xcodebuild
Languages:
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.11.0 => 16.11.0
react-native: 0.62.0 => 0.62.0
npmGlobalPackages:
react-native: Not Found

Library version: 2.3.1

Steps To Reproduce

  1. npm install @react-native-community/datetimepicker --save
  2. cd ios && pod install && cd ..
  3. Tried to run react-native run-ios (Build failing and unable to run ios).

Describe what you expected to happen:

  1. Project to run properly
@rahulkasana
Copy link
Author

Is the issue maybe caused coz I don't have use_frameworks enabled ?

@constantin-onu
Copy link

I have the same problem ... It is working fine with RN 0.61.5 but with RN 0.62.1 I have the same error.

@luancurti luancurti added the enhancement New feature or request label Apr 10, 2020
@luancurti luancurti self-assigned this Apr 10, 2020
@luancurti
Copy link
Member

@rahulkasana thanks for report this problem, I'm working in the solution in the PR #146 I need to test the Android Example App to make a Example App working with react native 0.62.2 I'll make this in the next days, when this PR #146 is merged I'll send a next version of the library in the npm and fix this issue, thanks again!

@mmxdr
Copy link

mmxdr commented Apr 10, 2020

same issue
temporary solution is changing RNDateTimePickerManager.m

if (@available(iOS 13.0, *)) {
        defaultColor = [UIColor labelColor];
    } else {
        defaultColor = [UIColor blackColor];
    }

to

defaultColor = [UIColor blackColor];

@luancurti
Copy link
Member

luancurti commented Apr 10, 2020

@drachyovmaxim this is not your issue your issue is #133 I'm working in the fix, thanks for the report

@luancurti
Copy link
Member

@rahulkasana if you use use_native_modules! you could remove this line pod 'RNDateTimePicker', :path => '../node_modules/@react-native-community/datetimepicker/RNDateTimePicker.podspec' of your Podfile

@luancurti
Copy link
Member

This issue is closed because we have an example working with 0.62.2 version

@enriquehudson
Copy link

I had the same problem, I only have to Update Xcode 10 to 11
After that, I tested with iOs 12 and works without problems

@marius4896
Copy link

I have the same problem, and can't make it work.
The same on RN 0.61.5 as well as 0.63.0.
Tried the Legacy build system but still no luck. I have Xcode 11.

@sheydarezaee
Copy link

sheydarezaee commented Aug 22, 2020

same issue on 0.63.2 here 🙋🏻‍♀️

@ZainAliSyed24
Copy link

@rahulkasana if you use use_native_modules! you could remove this line pod 'RNDateTimePicker', :path => '../node_modules/@react-native-community/datetimepicker/RNDateTimePicker.podspec' of your Podfile

Still not working . I have tried installing both version

"@react-native-community/datetimepicker": "^3.0.1”,

"@react-native-community/datetimepicker": "^2.5.0",

@luancurti
Copy link
Member

Hi guys, don't forgot to use the Xcode 11.6 if you update to version 3+

@umaraziz0
Copy link

umaraziz0 commented Sep 21, 2023

Hello, sorry to re-open this discussion as I'm stuck on the same problem and don't want to create a new duplicate issue.

My error message is as follows

The following build commands failed:
CompileC /Users/user/Library/Developer/Xcode/DerivedData/newProject-fbtmyswxmwvojjbtrwllttvccavn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNDateTimePicker.build/Objects-normal/arm64/RNDateTimePickerShadowView.o /Users/user/Sites/new-project/node_modules/@react-native-community/datetimepicker/ios/RNDateTimePickerShadowView.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'RNDateTimePicker' from project 'Pods')
(1 failure)

  • React Native version: 0.67.4
  • Library version: 7.5.0
  • xCode version: xCode 14.2
  • iOS simulator version: iOS 16.2

Have also tried using

  • xCode v15
  • iOS v17

my Podfile contains

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '13.0'

target 'newProject' do
  config = use_native_modules!

  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :hermes_enabled => true
  )

  target 'newProjectTests' do
    inherit! :complete
    # Pods for testing
  end

  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable the next line.
  use_flipper!()

  post_install do |installer|
    react_native_post_install(installer)
    __apply_Xcode_12_5_M1_post_install_workaround(installer)
  end
end

Environment Info

System:
    OS: macOS 13.5.1
    CPU: (8) arm64 Apple M1
    Memory: 95.30 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.20.1 - ~/.nvm/versions/node/v16.20.1/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 8.19.4 - ~/.nvm/versions/node/v16.20.1/bin/npm
    Watchman: 2023.07.24.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.12.1 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.2 AI-212.5712.43.2112.8609683
    Xcode: 14.2/14C18 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.20 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: 0.67.4 => 0.67.4 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

any help would be greatly appreciated

@TeyimPila
Copy link

TeyimPila commented Oct 25, 2023

@umaraziz0 were you able to find a solution to this issue? I am still facing the same issue and am unable to find a fix for it

@umaraziz0
Copy link

@umaraziz0 were you able to find a solution to this issue? I am still facing the same issue and am unable to find a fix for it

Not yet unfortunately, I've put it in my backlog for now. Hopefully someone else can provide some help

@Gautamshah1
Copy link

Gautamshah1 commented Apr 15, 2024

CompileC /Users/emed4u.com/Library/Developer/Xcode/DerivedData/EMed4UMobileApp-fwymcedhgqrbkwclwyrzlvzkiyai/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNDateTimePicker.build/Objects-normal/arm64/RNDateTimePickerShadowView.o /Users/emed4u.com/Documents/Emed4u-app/node_modules/@react-native-community/datetimepicker/ios/RNDateTimePickerShadowView.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'RNDateTimePicker' from project 'Pods')

getting this error while i am using ios12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.