Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by enesatlam322 · May 29, 2019 at 06:14 AM · unity 2dxcodebuild errormacbook

Build errors : This function declaration is not a prototype.

When I build on Macbook I get like 8000+ this warning and can't run or build project. I looked like everywhere but no solutions clearly.

alt text

alt text

this goes like that , I tried on my windows project , also tried with new clean project but I got same error every time.

ekran-resmi-2019-05-29-091115.png (329.7 kB)
ekran-resmi-2019-05-29-091045.png (392.8 kB)
Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image enesatlam322 · May 30, 2019 at 10:18 PM 0
Share

still waiting pro answer :)

avatar image LordBelasco enesatlam322 · Jun 07, 2019 at 08:49 AM 0
Share

I found the solution : where to deactivate this warnings ! In Xcode, in the project settings (not the Target settings !), you have only 2 tabs : Info and Build settings (for the target settings you have more tabs) in the project settings, open the Build settings tab, in the bottom, you have "Apple Clang - Warnings - all languages" section, and in this section you have a line Strict Prototypes set to Yes by default : set it to No.

Say goodbye to this damn warnings ;)

avatar image Garnette · Jul 26, 2019 at 05:34 PM 0
Share

I am getting the same problem. Has this been reported as a bug to Unity, yet? @enesatlam322 or @LordBelasco ?

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by LordBelasco · Jun 06, 2019 at 05:45 PM

I get the same problem but with 60.000 warnings, and I dont find a solution After a lot of research, it seems that Xcode 9 checks the prototype function, and a warning is added for empty param, if the word "void" is not added. example : int my_func(); > warning int my_func(void); > no warning

Unity dont add the word "void". It was possible to ignore this warning previously in Xcode, but it seems not possible now So no solution...

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image LordBelasco · Jun 07, 2019 at 08:48 AM 2
Share

I found the solution : where to deactivate this warnings ! In Xcode, in the project settings (not the Target settings !), you have only 2 tabs : Info and Build settings (for the target settings you have more tabs) in the project settings, open the Build settings tab, in the bottom, you have "Apple Clang - Warnings - all languages" section, and in this section you have a line Strict Prototypes set to Yes by default : set it to No.

Say goodbye to this damn warnings ;)

avatar image rrtkd LordBelasco · Aug 15, 2019 at 08:37 AM 0
Share

I have seen many people say "oh, just deactivate the warnings" but no one ever explained how to deactivate them.

I am VERY thankful that you explained it, step by step.

While I don't like ignoring warnings, I was asked to do port this one project into the Apple store, and I would rather set myself on fire than keep working on Apple longer than I need. Seriously, THAN$$anonymous$$ YOU.

avatar image Bunny83 · Jun 07, 2019 at 09:24 AM 0
Share

I don't do any iOS / xcode development. Though I think you should file a bug report in Unity and explain clearly what the issue is and how it should be fixed during the cross compiling. Suppressing warnings is never a solution just a workaround. Warnings are indicators that something isn't the way it's supposed to be. So this might be some outdated cross compilation issue which should be fixable on the Unity side.

avatar image
0

Answer by Aurimasp · Aug 27, 2019 at 09:52 AM

Hey. Could you please report the issue with Unity Bug Reporter and provide a small example project?

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

118 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

anyone else having issues with 5.3 and xCode 7.2? 4 Answers

Unity 3D Scene loading Issue in iOS Build 2 Answers

What is this error in build adroid and build app bundle in unity 2019.1.5? 1 Answer

My App Size is Too Large on iOS Because of Textures 0 Answers

Why is my Unity IOS App crashing after uploading it to xCode? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges