cocos2d / cocos2d-x-docs

documentation of cocos2d-x
102 stars 65 forks source link

Does not work on iMac M1 BigSur #317

Closed crookedbard closed 2 years ago

crookedbard commented 2 years ago

cocos run -p Mac:

"_png_write_image", referenced from: cocos2d::Image::saveImageToPNG(std::1::basic_string<char, std::__1::char_traits, std::1::allocator > const&, bool) in libcocos2d.a(CCImage.o) "_png_write_info", referenced from: cocos2d::Image::saveImageToPNG(std::1::basic_string<char, std::__1::char_traits, std::1::allocator > const&, bool) in libcocos2d.a(CCImage.o)

ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

/Users/xxxx/source/repos/xxxx/xxxxxx/mac-build/xxxxx.xcodeproj: warning: The Copy Bundle Resources build phase contains this target's Info.plist file '/Users/xxx/source/repos/xxxx/xxxx/proj.ios_mac/mac/Info.plist'. (in target 'xxxxxx' from project 'xxxxxx') BUILD FAILED

Xcode throws over 100 errors of undefined symbols.