Xcode build error: '.dylib not valid for use in process'
This project can be build successfully. But it can not run in Xcode(13.2.1).
'/opt/homebrew/Cellar/glfw/3.3.6/lib/libglfw.3.3.dylib' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?))
The problem is the .dylib
you used is not signed by
apple. You can choose to codesign
the lib, otherwise you
can choose not to sign the project.
GO TO
TARGETS->Build Settings->Code Signing Identity->Others
.
In default, it is '-'. Just delete it.