MacOS Big Sur cocos2d-x v4 build error

MacOS Big Sur 11.0.1
Xcode 12.2
cmake 3.18.4

clang: error: no such file or directory: ‘/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/libiconv.tbd’

How do I fix this?

Add it to your project?

This dependency was changed a long while ago. Are you upgrading an older project by chance?

1 Like

Yes, it is an old project. I started it a few month ago.

I just checked the path: there is no folder MacOSX10.15.sdk inside xcode.app. I think, you should replace MacOSX10.15.sdk with MacOSX.sdk in “other linking flags”.

2 Likes

It worked! Thanks for helping out :smiley:

I replaced MacOSX10.15.sdk with MacOSX.sdk in the following menu. (I don’t know what is happening here.)

Other Linker Flags

It shows this weird thing when I build though.

2020-11-18 19:55:15.184340+0900 test[698:11138] fopen failed for data file: errno = 2 (No such file or directory)
2020-11-18 19:55:15.184401+0900 test[698:11138] Errors found! Invalidating cache...
2020-11-18 19:55:17.018103+0900 test[698:11138] fopen failed for data file: errno = 2 (No such file or directory)
2020-11-18 19:55:17.018165+0900 test[698:11138] Errors found! Invalidating cache...
cocos2d: QuadCommand: resizing index size from [-1] to [2560]

I had the same errors in console. After “invalidating cache” errors are gone forever.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.