cocos2d/cocos2d-console

project_compile.py(xcrun parameter issue)

GameEgg opened this issue · 0 comments

In my case,

app_path = os.path.join(output_dir, "%s.app" % targetName)
ipa_path = os.path.join(output_dir, "%s.ipa" % targetName)
ipa_cmd = "xcrun -sdk %s PackageApplication -v \"%s\" -o \"%s\"" % (self.use_sdk, app_path, ipa_path)
self._run_cmd(ipa_cmd)

This code make a trouble : xcrun specified application doesn't exist or isn't a bundle directory.
So, I changed it to

app_path = os.path.join(output_dir, "%s.app" % targetName)
ipa_path = os.path.join(output_dir, "%s.ipa" % targetName)
ipa_cmd = "xcrun -sdk %s PackageApplication -v \"%s\" -o \"%s\"" % (self.use_sdk, output_dir, ipa_path)
self._run_cmd(ipa_cmd)

(I changed an xcrun parameter. app_path to output_dir)

After modifying, it works well.
Is it only my trouble?