Error about "cocos compile", no file libcocos2d iOS.a

Good evening people.

Please help me about “cocos compile” command.

My environment:

  • I use Mac
  • I use cocos2d-x 3.3 (final).
  • I created my project by “cocos new” command

When I use the command;
cocos compile -p ios

I get the error;
clang: error: no such file or directory: ‘${MY-PROJECT-PATH}/bin/debug/ios/libcocos2d iOS.a’

What can I do?

And, Release build, like
cocos compile -p ios -m release

get the almost same results.
clang: error: no such file or directory: ‘${MY-PROJECT-PATH}/bin/release/ios/libcocos2d iOS.a’

Did you run setup.py in your cocos directory?

I’m sorry for this late reply.

Yes, of course I ran setup.py.

To be on the safe side, I did setup.py again.
But, I got the same result:
clang: error: no such file or directory: ‘${MY-Project-PATH}/bin/release/ios/libcocos2d iOS.a’

@tttreal

I have tried cocos2d-x v3.3 final now, it is working.

Thanks.

I recreated my project, then ,it is working.
So, maybe I did wrong something.
I spent half of the day, but I can’t why it is caused.

Sorry, sir.

@tttreal

Nerver mind :slight_smile:

same problem for me too. First time I compiled on iOS and it was working, then changed to mac OS, compiled, worked again, after changing build target from mac os to iOS it stopped working.