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

Does not build in 76.0 in new arch for ios #17

Open
Gautham495 opened this issue Nov 4, 2024 · 11 comments
Open

Does not build in 76.0 in new arch for ios #17

Gautham495 opened this issue Nov 4, 2024 · 11 comments

Comments

@Gautham495
Copy link

Build logs

#if RCT_NEW_ARCH_ENABLED
#import <ReactNativeKCKeepAwakeSpec/ReactNativeKCKeepAwakeSpec.h>
#endif

@sayem314 - Please fix it when you have time.

@sayem314
Copy link
Owner

sayem314 commented Nov 4, 2024

Send screenshot of error. I haven't touched RN in a while.

@Gautham495
Copy link
Author

This is the error which xcode gave out.

It works well in android.

@Gautham495
Copy link
Author

@sayem314 as new arch is enabled, it just said this module is not found.

@chrisbianca
Copy link

I've just run into the same issue on RN 0.75.4 with the new architecture enabled. It was previously working with the new architecture on RN 0.74.

'ReactNativeKCKeepAwakeSpec/ReactNativeKCKeepAwakeSpec.h' file not found

Screenshot 2024-11-05 at 17 38 05

@smfunder
Copy link

smfunder commented Nov 8, 2024

Hi there! Same issue here with React Native 0.76.1 and new Arch enabled.

Captura de pantalla 2024-11-08 a la(s) 12 56 52 a  m

@gigilibala
Copy link

gigilibala commented Nov 8, 2024

Same here. Issue with with RN 0.76.1 and Xcode

** BUILD FAILED **


The following build commands failed:
        CompileC /Users/amin/Library/Developer/Xcode/DerivedData/myapp-ehkjrileckhvxbafzuvenijgdutp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-keep-awake.build/Objects-normal/arm64/ReactNativeKCKeepAwake.o /Users/amin/Projects/myapp/app/node_modules/@sayem314/react-native-keep-awake/ios/ReactNativeKCKeepAwake.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-keep-awake' from project 'Pods')
        Building workspace myapp with scheme myapp and configuration Debug
(2 failures)

@Gautham495
Copy link
Author

@sayem314 - Any fixes?

@shlomo-neuberger
Copy link

Change the import path to #import <ReactCodegen/ReactNativeKCKeepAwakeSpec/ReactNativeKCKeepAwakeSpec.h>
I also added PR for it #18

@sayem314
Copy link
Owner

@Gautham495 can you install directly from main github branch now and check if it’s working so i can push to npm.

@smfunder
Copy link

@sayem314 I just tried installing from master branch on my app and seems to be working correctly!

I did it this way:
"@sayem314/react-native-keep-awake": "https://github.com/sayem314/react-native-keep-awake.git",
on package.json / dependencies

The built is now working! Thanks for the update!

@sayem314
Copy link
Owner

Published @sayem314/[email protected]

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

6 participants