Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target 'App' not found in project #169

Open
petrot opened this issue Feb 14, 2023 · 9 comments
Open

Target 'App' not found in project #169

petrot opened this issue Feb 14, 2023 · 9 comments

Comments

@petrot
Copy link

petrot commented Feb 14, 2023

When I run npx trapeze run trapeze.config.yaml, I get this error:

[warn] Skipping ios.bundleId (Target 'App' not found in project)
run ios version 
[warn] Skipping ios.version (Target 'App' not found in project)
run ios incrementBuild 
[warn] Skipping ios.incrementBuild (Target 'App' not found in project)
run ios productName 
[warn] Skipping ios.productName (Target 'App' not found in project)
run ios displayName 
[warn] Skipping ios.displayName (Target 'App' not found in project)
run ios copy App/GoogleService-Info.plist

I got this error after the second run.. When I add a new iOS platform, it runs well in the first time.

My yaml file (it's in the root):


variables:
  VERSION:
    default: 4.0.0
  APP_NAME:
    default: XXX

platforms:
  android:
    appName: $APP_NAME
    versionName: $VERSION
    incrementVersionCode: true
    copy:
      - src: ../google-services.json
        dest: app/google-services.json
    manifest:
      - file: AndroidManifest.xml
        target: manifest/application
        attrs:
          android:usesCleartextTraffic: true
  ios:
    targets:
      App:
        bundleId: x.x.x
        version: $VERSION
        incrementBuild: true
        productName: $APP_NAME
        displayName: $APP_NAME
        copy:
          - src: ../../GoogleService-Info.plist
            dest: App/GoogleService-Info.plist
@mlynch
Copy link
Contributor

mlynch commented Feb 15, 2023

Do you see any file changes in your ios project that are out of the ordinary? Perhaps try running this on a clean git index and then diff to see what changed? That would be helpful to see here in case one of these commands is doing something it shouldn't...

@petrot
Copy link
Author

petrot commented Feb 15, 2023

@mlynch I found the problem... The Hungarian accented letters are the problem.. I can't add "á" letter to the display name, only the english letters are accepted.. But inside XCode, I can change... So it should accept it 🤔

@brilliantinsane
Copy link

brilliantinsane commented May 12, 2023

I am also getting this error for both bundleId and displayName. And I tried putting something like "Test" to displayName and still the same. So I don't have any accented letters or anything similar.

@brilliantinsane
Copy link

Even if I create new yaml file like in documentation:

platforms:
  ios:
    targets:
      App:
        displayName: My Awesome App

With nothing else in it, still doesn't work.
run ios displayName My Awesome App
[warn] Skipping ios.displayName (Target 'App' not found in project)
and I am getting this warning in console.

Please help.

@mlynch
Copy link
Contributor

mlynch commented May 12, 2023

Do you have an App target in your project? If not, you should use a different name for the App or leave it out and put your tasks above the targets entry as shown here: https://trapeze.dev/docs/Operations/ios#targets-and-builds

@brilliantinsane
Copy link

Yes, I have App in target.

Screenshot 2023-05-12 at 14 31 56

Earlier today it was working just fine. I am using this script multiple times a day, every day. And suddenly, it started throwing this warning.

@mlynch
Copy link
Contributor

mlynch commented May 12, 2023

Hmm, weird. And did you change the display name to one with different characters per the original poster's issue?

@brilliantinsane
Copy link

I found the issue.

I added some comments to project.pbxproj file, two of them to be precise, and that was causing Trapeze to be unable to find the App target. Totally my mistake, I did not know you could not add your own comments inside project.pbxproj file.

I am sorry for the inconvenience!

Thank you for ultra fast responses @mlynch ! :)

@mlynch
Copy link
Contributor

mlynch commented May 12, 2023

Ah, interesting. Yea, generally I wouldn't advise hand-modifying that file given xcode wants to own it and it's an absolute beast of an undocumented mess 😂

@mlynch mlynch closed this as completed May 12, 2023
@mlynch mlynch reopened this May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants