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

Check dependencies build command failed #21

Closed
marns opened this issue Sep 26, 2020 · 3 comments
Closed

Check dependencies build command failed #21

marns opened this issue Sep 26, 2020 · 3 comments

Comments

@marns
Copy link

marns commented Sep 26, 2020

I'm getting a kind of nondescript error:

[22:12:17]: ▸ ** ARCHIVE FAILED **
160
[22:12:17]: ▸ The following build commands failed:
161
[22:12:17]: ▸ 	Check dependencies

Any ideas how to debug / fix?

Step:

      - name: Build IPA
        uses: yukiarrr/ios-build-action@v1.1.1
        with:
          project-path: iOS/iOS/Unity-iPhone.xcodeproj
          p12-base64: ${{ secrets.P12_BASE64 }}
          mobileprovision-base64: ${{ secrets.MOBILEPROVISION_BASE64 }}
          code-signing-identity: ${{ secrets.CODE_SIGNING_IDENTITY }}
          team-id: ${{ secrets.TEAM_ID }}
          disable-targets: "UnityFramework,Unity-iPhone"

Job output:

[22:12:15]: ▸ Building Unity-iPhone/UnityFramework [Release]
158
[22:12:15]: ▸ Check Dependencies
159
[22:12:17]: ▸ ** ARCHIVE FAILED **
160
[22:12:17]: ▸ The following build commands failed:
161
[22:12:17]: ▸ 	Check dependencies
162
[22:12:17]: ▸ (1 failure)
163
    The Legacy Build System will be removed in a future release. You can configure the selected build system and this deprecation message in File > Project Settings.
164
▸ Cleaning Unity-iPhone/UnityFramework [Release]
165
▸ Check Dependencies
166
▸ Cleaning Unity-iPhone/Unity-iPhone [Release]
167
▸ Check Dependencies
168
▸ Clean Succeeded
169
    The Legacy Build System will be removed in a future release. You can configure the selected build system and this deprecation message in File > Project Settings.
170
▸ Building Unity-iPhone/UnityFramework [Release]
171
▸ Check Dependencies
172
** ARCHIVE FAILED **
173

174

175
The following build commands failed:
176
	Check dependencies
177
(1 failure)
178
[22:12:17]: Exit status: 65
179
[22:12:17]: 
180
[22:12:17]: Maybe the error shown is caused by using the wrong version of Xcode
181
[22:12:17]: Found multiple versions of Xcode in '/Applications/'
182
[22:12:17]: Make sure you selected the right version for your project
183
[22:12:17]: This build process was executed using '/Applications/Xcode_12.app'
184
[22:12:17]: If you want to update your Xcode path, either
185
[22:12:17]: 
186
[22:12:17]: - Specify the Xcode version in your Fastfile
187
[22:12:17]: ▸ xcversion(version: "8.1") # Selects Xcode 8.1.0
188
[22:12:17]: 
189
[22:12:17]: - Specify an absolute path to your Xcode installation in your Fastfile
190
[22:12:17]: ▸ xcode_select "/Applications/Xcode8.app"
191
[22:12:17]: 
192
[22:12:17]: - Manually update the path using
193
[22:12:17]: ▸ sudo xcode-select -s /Applications/Xcode.app
194
[22:12:17]: 
195

196
+---------------+----------------------------+
197
|             Build environment              |
198
+---------------+----------------------------+
199
| xcode_path    | /Applications/Xcode_12.app |
200
| gym_version   | 2.160.0                    |
201
| export_method | app-store                  |
202
| sdk           | iPhoneOS14.0.sdk           |
203
+---------------+----------------------------+
@marns
Copy link
Author

marns commented Sep 27, 2020

Found the rest of the log file- better error is:

[35mCode Signing Error: UnityFramework does not support provisioning profiles. UnityFramework does not support provisioning profiles, but provisioning profile [myapp] has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor.

Tried removing UnityFramework from disable-targets, and I get the same error. I see a similar issue under discussion here: microsoft/azure-pipelines-tasks#12263
But it looks like you all are building signed Unity apps successfully.

Commenting out disable-targets (trying to test automatic signing), I get:

Code Signing Error: UnityFramework has conflicting provisioning settings. UnityFramework is automatically signed, but provisioning profile [myapp] has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor, or switch to manual signing in the Signing & Capabilities editor.

So I'm not sure how to either test auto-signing for the whole app, or build/sign UnityFramework correctly with a signed app

@marns
Copy link
Author

marns commented Sep 27, 2020

I can see this is already being addressed in #18

I confirmed that using @gpiffaretti's ios-build-action@master passed this step, so I think this one can be closed.

I will open a new issue for the next error I'm running into: #22

@yukiarrr
Copy link
Owner

Including the PR that resolved this issue, v1.2.0 has been released.
Thanks for your report!

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