Appcenter-cli: Codepush command can't find my pbxproj files

Created on 4 May 2020  路  3Comments  路  Source: microsoft/appcenter-cli

Hi!

I'm running on this issue. My app's name on appcenter is named my-app, but in my project's tree the files are under ios/MyApp.

I managed to do a codepush release a copule of weeks ago, by indicating where the Info.plist was with --plist-file ios/MyApp/Info.plist without issues, but now I'm getting the following error:

I can't find what's the config setting indicate where's my .xcodeproj in the documentation.

appcenter codepush release-react -a MyCompany/my-app --plist-file ios/MyApp/Info.plist
Detecting ios app version:

Error: Command 'codepush release-react -a MyCompany/my-app --plist-file ios/MyApp/Info.plist' failed with exception "Unable to find either of the following pbxproj files in order to infer your app's binary version: "ios/my-app.xcodeproj/project.pbxproj", "ios/project.pbxproj"."

Thanks in advance.

CodePush

Most helpful comment

Running into this as well, it would be nice to be able to provide an option similar to --plist-file to specify where the pbxproj is

All 3 comments

Running into this as well, it would be nice to be able to provide an option similar to --plist-file to specify where the pbxproj is

Hi, @garrettjoecox

I fixed my issue by making the "main" package name in the package.json match the ios/android source folders. Hope it helps.

--plist-file is just to specify where the plist file is located
for the project.pbxproj file, I had to add a new option to specify the path to project.pbxproj file

https://github.com/giangdhwhtbr/appcenter-cli/commit/4914f8c076b4e1f0a0eb2c9068d9cb4f1bb518ed

Was this page helpful?
0 / 5 - 0 ratings