akemin-dayo / simject

simject is a command-line tool and iOS dynamic library that allows developers to easily test their tweaks on the iOS Simulator.
BSD 2-Clause "Simplified" License
486 stars 55 forks source link

Error while running 'make setup' #55

Closed JezWalmsley closed 4 years ago

JezWalmsley commented 4 years ago

I keep on getting the error 'iPhone Developer: no identity found' and can't find how to bypass it. Any help?

alexmodrono commented 4 years ago

Make sure you're not running the command as root (using sudo or su) since the keychain is different.

If you're not running the command as root, the problem is probably because the codesign flags are incorrect.

Run security find-identity -p codesigning to get all the codesigning identities on your keychain and copy the code (which should be something like this A2BB4274B6B119DD31EF2C51DIC7C0F0D99ES6P).

Once done that, go to $THEOS/makefiles/targets/_common/darwin_head.mk and change 'TARGET_CODESIGN_FLAGS ?= --sign 'iPhone Developer' to TARGET_CODESIGN_FLAGS ?= --sign 'CODE', where CODE is the code you copied before.

Hope this helps you! It worked for me at least. :)