-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
A function declaration without a prototype is deprecated in all versions of C #36763
Comments
|
facing the same issue, did you find any solution? |
double the '|', it works |
duplicate #36739 |
A temporal solution what i found is add |
How do I make the file editable without having to unlock it every time? |
This issue is related to the Firebase, |
Anybody got solutions for this? I have the same issue on Xcode 14.3 after upgrade. I believe it's caused by Firebase and that adding |
hello is there any solution here please, i am still facing the issue . |
Same, issue, updated firebase packages but had no luck. |
This does "work" but there are SO many files to change and they are all untracked dependencies. |
I found a flag under the build settings that I think disabled strict prototype checking. I think that helped. But I still have other issues so I'm not sure if my new errors are before or after this one 🤷♂️ Build Settings / Apple Clang - Warnings - All Languages / String Prototypes = No |
You may disable "CLANG_WARN_STRICT_PROTOTYPES" for "GoogleDataTransport" in your Podfile. post_install do |installer|
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
installer.pods_project.targets.each do |target|
# Make it build with XCode 14
if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
target.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
end
end
# Make it work with GoogleDataTransport
if target.name.start_with? "GoogleDataTransport"
target.build_configurations.each do |config|
config.build_settings['CLANG_WARN_STRICT_PROTOTYPES'] = 'NO'
end
end
end
end |
I believe |
Works for me, I've to disable it on Project level |
Thank you everyone who hit this before I did ... using Firebase ~6.13 and RN 0.63 it was necessary to
run Then it built successfully. |
I am getting
|
@unamed000 Were you able to find solution to this issue? |
facebook/react-native#36763 /Users/jenkins/workspace/fk_mobile-app-ios_develop/platforms/ios/Pods/GoogleDataTransport/GoogleDataTransport/GDTCORLibrary/GDTCORClock.m:44:43: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] static int64_t KernelBootTimeInNanoseconds() { ^ void /Users/jenkins/workspace/fk_mobile-app-ios_develop/platforms/ios/Pods/GoogleDataTransport/GoogleDataTransport/GDTCORLibrary/GDTCORClock.m:62:35: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] static int64_t UptimeInNanoseconds() {
is it Strict Prototypes or String Prototypes? I can't find String Prototypes |
It's Strict Prototypes -> |
Add void to functions in and about half a dozen more. like this NSData *GDTCCTConstructNetworkConnectionInfoData(void) { |
I am getting above error in IOS project and used everything which is above mentioned but not able to run project. Anyone help me. |
This worked for me |
Description
After updating to xcode 14.3 (14E222b) I faced the issue in #36758. After solving that by using a patch, I came across error :
Error :
CompileC /Users/bishapbhusal/Library/Developer/Xcode/DerivedData/xxxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleDataTransport.build/Objects-normal/x86_64/GDTCORPlatform.o /Users/bishapbhusal/Documents/xxxx/xxxx/ios/Pods/GoogleDataTransport/GoogleDataTransport/GDTCORLibrary/GDTCORPlatform.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'GoogleDataTransport' from project 'Pods')
React Native Version
0.68.2
Output of
npx react-native info
System:
OS: macOS 13.2.1
CPU: (8) arm64 Apple M1 Pro
Memory: 105.47 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.0.0 - ~/.nvm/versions/node/v18.0.0/bin/node
Yarn: 1.22.19 - ~/Documents/speedhome/app-speedhome/node_modules/.bin/yarn
npm: 8.6.0 - ~/.nvm/versions/node/v18.0.0/bin/npm
Watchman: 2022.03.21.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
Android SDK: Not Found
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9123335
Xcode: 14.3/14E222b - /usr/bin/xcodebuild
Languages:
Java: 11.0.16.1 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.68.2 => 0.68.2
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Update Xcode with last version 14.3 (14E222b) and try to build project.
Snack, code example, screenshot, or link to a repository
The text was updated successfully, but these errors were encountered: