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

Generated Symroot folder structure unrecognized by archive task #459

Open
thipokch opened this issue Jul 29, 2022 · 3 comments
Open

Generated Symroot folder structure unrecognized by archive task #459

thipokch opened this issue Jul 29, 2022 · 3 comments

Comments

@thipokch
Copy link

thipokch commented Jul 29, 2022

Thanks for the cool plugin. Please help me find out why the folder structure

When I copied the xcodebuild command from Gradle debug mode and run it in terminal, it seems to be generating what archive task expects.

# Achieve task expects this
# and Build task sometimes generates this folder structure. 

build/
├─ sym/
│  ├─ Debug-iphoneos/
│  │  ├─ .ipa
│  │  ├─ .sym
│  │  ├─ ...
├─ ...
# Build task most often time generates this folder structure.

build/
├─ sym/
│  ├─  .ipa
│  ├─  .sym
│  ├─  ...
├─ ...

Here's my build.gradle.kts (I also did it with groovy and it's the same issue).

gradle.taskGraph.whenReady {
      xcodebuild {
          scheme = "dev"
          target = "example"

          configuration = "Release"
          simulator = false

          infoplist {
              bundleIdentifier = "ch.thipok.example.dev"
              bundleDisplayName = "Example Dev"
          }
    }
}

I tried working around this issue, by running archive task, but the command resulted issue as seen in #457.

@thipokch
Copy link
Author

Seems to be caused by ProcessBuilder. I replaced ProcessBuilder with Gradle's exec and the command seems to be working.

@renep
Copy link
Contributor

renep commented Aug 1, 2022

Very strange. I never had this issue. The ProcessBuilder itself is used so that environment variables can be passed to the process that is executed (e.g. xcodebuild). In the debug log you should see want environment variables are set to the ProcessBuilder. Maybe this is the cause for this problem.

@renep
Copy link
Contributor

renep commented Aug 1, 2022

One other question: What Xcode Version do you use, and what gradle version?

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

2 participants