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

Multiple commands produce ... error #19

Closed
muratcorlu opened this issue Nov 2, 2018 · 7 comments
Closed

Multiple commands produce ... error #19

muratcorlu opened this issue Nov 2, 2018 · 7 comments

Comments

@muratcorlu
Copy link

I tried to use this plugin for my ionic application. When I tried to run it, all of my tests are failing with this error:

Testing failed:
Multiple commands produce '/var/folders/_r/ssl659l55k36rcthxbjzcy700000gn/T/snapshot_derived20181102-72161-87p9tr/Build/Products/Debug-iphonesimulator/scheme-Runner.app/PlugIns/scheme.xctest/Info.plist':
1) Target 'scheme' (project 'bilibu') has copy command from '/Users/murat.corlu/works/bilibu/fastlane/cordova_screenshots/ios/scheme/Info.plist' to '/var/folders/_r/ssl659l55k36rcthxbjzcy700000gn/T/snapshot_derived20181102-72161-87p9tr/Build/Products/Debug-iphonesimulator/scheme-Runner.app/PlugIns/scheme.xctest/Info.plist'
2) Target 'scheme' (project 'bilibu') has process command with output '/var/folders/_r/ssl659l55k36rcthxbjzcy700000gn/T/snapshot_derived20181102-72161-87p9tr/Build/Products/Debug-iphonesimulator/scheme-Runner.app/PlugIns/scheme.xctest/Info.plist'

I'm using ionic 4, XCode 10. Any suggestion to fix this?

@janpio
Copy link
Collaborator

janpio commented Nov 2, 2018

Can you show a bit more output? The output above is not really telling us to much, is it? Or did I misunderstand?

@MichaelCurrie
Copy link

I have the same error. Here is my full package log when trying to create an iOS package:

Running with gitlab-runner 10.2.0~beta.147.gbd1f3fcb (bd1f3fcb)
  on ip-10-2-92-145 (dc549c99)
Creating new VM...
Running on Mac-4.local via ip-10-2-92-145...
Cloning repository...
Cloning into 'builds/Fling-Asia/Fling-Food-App'...
Checking out a857b174 as master...
Skipping Git submodules setup
$ fetch-updates || true
Checking for build process updates...
$ build-ios
Setting up project pipeline...
Running build process...
+--------------------------------------------+---------+----------------------------+
|                                   Used plugins                                    |
+--------------------------------------------+---------+----------------------------+
| Plugin                                     | Version | Action                     |
+--------------------------------------------+---------+----------------------------+
| fastlane-plugin-update_project_codesigning | 0.2.0   | update_project_codesigning |
+--------------------------------------------+---------+----------------------------+

[05:33:05]: Sending anonymous analytics information
[05:33:05]: Learn more at https://docs.fastlane.tools/#metrics
[05:33:05]: No personal or sensitive data is sent.
[05:33:05]: You can disable this by adding `opt_out_usage` at the top of your Fastfile
[05:33:05]: You have required a gem, if this is a third party gem, please use `fastlane_require 'securerandom'` to ensure the gem is installed locally.
[05:33:05]: ------------------------------
[05:33:05]: --- Step: default_platform ---
[05:33:05]: ------------------------------
[05:33:05]: Driving the lane 'ios package_build' 🚀
[05:33:05]: ---------------------------
[05:33:05]: --- Step: build_summary ---
[05:33:05]: ---------------------------

+---------------------+----------------------+
|               Build Summary                |
+---------------------+----------------------+
| Job ID              | 6371494              |
| Node.js version     | v10.10.0             |
| Cordova CLI version | 8.0.0                |
| npm version         | 6.4.1                |
| macOS version       | 10.13.6              |
| Xcode version       | Xcode 10.0           |
|                     | Build version 10A255 |
+---------------------+----------------------+

[05:33:09]: ---------------------------------
[05:33:09]: --- Step: add_git_credentials ---
[05:33:09]: ---------------------------------
[05:33:09]: Writing git-credentials files
[05:33:09]: git-credentials successfully added to project
[05:33:09]: -------------------------------
[05:33:09]: --- Step: modify_config_xml ---
[05:33:09]: -------------------------------
[05:33:09]: No custom native config detected.
[05:33:09]: -----------------------------
[05:33:09]: --- Step: create_keychain ---
[05:33:09]: -----------------------------
[05:33:09]: $ security list-keychains -d user
[05:33:09]: ▸ "/Users/ionic/Library/Keychains/login.keychain-db"
[05:33:09]: ----------------------------
[05:33:09]: --- Step: download_certs ---
[05:33:09]: ----------------------------

+-------------------+---------------------------------------------------------+
|                            Installed Certificate                            |
+-------------------+---------------------------------------------------------+
| User ID           | SQD923G458                                              |
| Common Name       | iPhone Distribution: Fling Company Limited (SQD923G458) |
| Organization Unit | SQD923G458                                              |
| Organization      | Fling Company Limited                                   |
| Country           | US                                                      |
+-------------------+---------------------------------------------------------+

[05:33:10]: Installing provisioning profile...
[05:33:10]: --------------------------------
[05:33:10]: --- Step: import_certificate ---
[05:33:10]: --------------------------------
[05:33:11]: ---------------------------
[05:33:11]: --- Step: build_pro_app ---
[05:33:11]: ---------------------------
[05:33:11]: Installing Dependencies
[05:33:11]: $ npm install --quiet --no-optional
[05:33:40]: ▸ WARN notice [SECURITY] protobufjs has the following vulnerability: 1 moderate. Go here for more details: https://nodesecurity.io/advisories?search=protobufjs&version=5.0.3 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
[05:33:46]: ▸ WARN notice [SECURITY] superagent has the following vulnerability: 1 low. Go here for more details: https://nodesecurity.io/advisories?search=superagent&version=3.6.0 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
[05:34:18]: ▸ > [email protected] install /Users/ionic/builds/Fling-Asia/Fling-Food-App/node_modules/grpc
[05:34:18]: ▸ > node-pre-gyp install --fallback-to-build --library=static_library
[05:34:18]: ▸ node-pre-gyp WARN Using request for node-pre-gyp https download
[05:34:19]: ▸ [grpc] Success: "/Users/ionic/builds/Fling-Asia/Fling-Food-App/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown/grpc_node.node" is installed via remote
[05:34:19]: ▸ > [email protected] install /Users/ionic/builds/Fling-Asia/Fling-Food-App/node_modules/node-sass
[05:34:19]: ▸ > node scripts/install.js
[05:34:19]: ▸ Downloading binary from https://github.com/sass/node-sass/releases/download/v4.11.0/darwin-x64-64_binding.node
[05:34:20]: ▸ Download complete
[05:34:20]: ▸ Binary saved to /Users/ionic/builds/Fling-Asia/Fling-Food-App/node_modules/node-sass/vendor/darwin-x64-64/binding.node
[05:34:20]: ▸ Caching binary to /Users/ionic/.npm/node-sass/4.11.0/darwin-x64-64_binding.node
[05:34:21]: ▸ > [email protected] postinstall /Users/ionic/builds/Fling-Asia/Fling-Food-App/node_modules/uglifyjs-webpack-plugin
[05:34:21]: ▸ > node lib/post_install.js
[05:34:21]: ▸ > [email protected] postinstall /Users/ionic/builds/Fling-Asia/Fling-Food-App/node_modules/node-sass
[05:34:21]: ▸ > node scripts/build.js
[05:34:21]: ▸ Binary found at /Users/ionic/builds/Fling-Asia/Fling-Food-App/node_modules/node-sass/vendor/darwin-x64-64/binding.node
[05:34:21]: ▸ Testing binary
[05:34:21]: ▸ Binary is fine
[05:34:22]: ▸ added 1141 packages from 776 contributors and audited 8510 packages in 70.426s
[05:34:22]: ▸ found 1 low severity vulnerability
[05:34:22]: ▸ run `npm audit fix` to fix them, or `npm audit` for details
[05:34:22]: Build script detected..
[05:34:22]: $ npm run build
[05:34:23]: ▸ > [email protected] build /Users/ionic/builds/Fling-Asia/Fling-Food-App
[05:34:23]: ▸ > ionic-app-scripts build
[05:34:25]: ▸ [05:34:25]  ionic-app-scripts 3.2.1
[05:34:25]: ▸ [05:34:25]  build dev started ...
[05:34:25]: ▸ [05:34:25]  clean started ...
[05:34:25]: ▸ [05:34:25]  clean finished in 2 ms
[05:34:25]: ▸ [05:34:25]  copy started ...
[05:34:25]: ▸ [05:34:25]  deeplinks started ...
[05:34:25]: ▸ [05:34:25]  deeplinks finished in 352 ms
[05:34:25]: ▸ [05:34:25]  transpile started ...
[05:34:35]: ▸ [05:34:35]  transpile finished in 9.35 s
[05:34:35]: ▸ [05:34:35]  preprocess started ...
[05:34:35]: ▸ [05:34:35]  preprocess finished in 1 ms
[05:34:35]: ▸ [05:34:35]  webpack started ...
[05:34:38]: ▸ [05:34:38]  copy finished in 13.66 s
[05:34:43]: ▸ [05:34:43]  webpack finished in 8.01 s
[05:34:43]: ▸ [05:34:43]  sass started ...
[05:34:44]: ▸ [05:34:44]  sass finished in 1.75 s
[05:34:44]: ▸ [05:34:44]  postprocess started ...
[05:34:44]: ▸ [05:34:44]  postprocess finished in 30 ms
[05:34:44]: ▸ [05:34:44]  lint started ...
[05:34:45]: ▸ [05:34:45]  build dev finished in 19.84 s
[05:34:49]: ▸ no-unused-variable is deprecated. Since TypeScript 2.9. Please use the built-in compiler checks instead.
[05:34:51]: ▸ [05:34:51]  lint finished in 6.51 s
[05:34:51]: $ ionic info
[05:34:56]: ▸ ✔ Gathering environment info - done!
[05:34:56]: ▸ Ionic:
[05:34:56]: ▸ ionic (Ionic CLI)  : 4.1.2 (/usr/local/lib/node_modules/ionic)
[05:34:56]: ▸ Ionic Framework    : ionic-angular 3.9.2
[05:34:56]: ▸ @ionic/app-scripts : 3.2.1
[05:34:56]: ▸ Cordova:
[05:34:56]: ▸ cordova (Cordova CLI) : 8.0.0
[05:34:56]: ▸ Cordova Platforms     : none
[05:34:56]: ▸ Cordova Plugins       : no whitelisted plugins (0 plugins total)
[05:34:56]: ▸ System:
[05:34:56]: ▸ NodeJS : v10.10.0 (/usr/local/Cellar/node/10.10.0/bin/node)
[05:34:56]: ▸ npm    : 6.4.1
[05:34:56]: ▸ OS     : macOS High Sierra
[05:34:56]: ▸ Xcode  : Xcode 10.0 Build version 10A255
[05:34:56]: Generating app manifest...
[05:34:56]: $ ionic deploy manifest
[05:34:57]: ----------------------------------
[05:34:57]: --- Step: add_cordova_to_index ---
[05:34:57]: ----------------------------------
[05:34:57]: codova.js already present in index.html: skipping
[05:34:57]: --------------------------------------
[05:34:57]: --- Step: cordova platform add ios ---
[05:34:57]: --------------------------------------
[05:34:57]: $ cordova platform add ios
[05:34:58]: ▸ Using cordova-fetch for cordova-ios@^4.5.5
[05:35:21]: ▸ Adding ios project...
[05:35:21]: ▸ Creating Cordova project for the iOS platform:
[05:35:21]: ▸ Path: platforms/ios
[05:35:21]: ▸ Package: com.fling.delivery
[05:35:21]: ▸ Name: Fling
[05:35:22]: ▸ iOS project created with [email protected]
[05:35:22]: ▸ Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
[05:35:42]: ▸ Installing "cordova-plugin-whitelist" for ios
[05:35:42]: ▸ Adding cordova-plugin-whitelist to package.json
[05:35:42]: ▸ Saved plugin info for "cordova-plugin-whitelist" to config.xml
[05:35:42]: ▸ Discovered plugin "cordova-plugin-device" in config.xml. Adding it to the project
[05:36:01]: ▸ Installing "cordova-plugin-device" for ios
[05:36:02]: ▸ Adding cordova-plugin-device to package.json
[05:36:02]: ▸ Saved plugin info for "cordova-plugin-device" to config.xml
[05:36:02]: ▸ Discovered plugin "cordova-plugin-splashscreen" in config.xml. Adding it to the project
[05:36:21]: ▸ Installing "cordova-plugin-splashscreen" for ios
[05:36:21]: ▸ Adding cordova-plugin-splashscreen to package.json
[05:36:21]: ▸ Saved plugin info for "cordova-plugin-splashscreen" to config.xml
[05:36:21]: ▸ Discovered plugin "cordova-plugin-googleplus" in config.xml. Adding it to the project
[05:36:41]: ▸ Installing "cordova-plugin-googleplus" for ios
[05:36:41]: ▸ Google Sign-In prerequisites
[05:36:44]: ▸ START Running hook to add iOS Keychain Sharing entitlements (required since iOS 10)
[05:36:44]: ▸ Will add iOS Keychain Sharing entitlements to project 'Fling'
[05:36:44]: ▸ END Running hook to add iOS Keychain Sharing entitlements (required since iOS 10)
[05:36:44]: ▸ Adding cordova-plugin-googleplus to package.json
[05:36:44]: ▸ Saved plugin info for "cordova-plugin-googleplus" to config.xml
[05:36:44]: ▸ Discovered plugin "cordova-plugin-ionic-webview" in config.xml. Adding it to the project
[05:37:05]: ▸ Installing "cordova-plugin-ionic-webview" for ios
[05:37:07]: ▸ Adding cordova-plugin-ionic-webview to package.json
[05:37:07]: ▸ Saved plugin info for "cordova-plugin-ionic-webview" to config.xml
[05:37:07]: ▸ Discovered plugin "cordova-plugin-ionic-keyboard" in config.xml. Adding it to the project
[05:37:27]: ▸ Installing "cordova-plugin-ionic-keyboard" for ios
[05:37:27]: ▸ Adding cordova-plugin-ionic-keyboard to package.json
[05:37:27]: ▸ Saved plugin info for "cordova-plugin-ionic-keyboard" to config.xml
[05:37:27]: ▸ Discovered plugin "com.paypal.cordova.mobilesdk" in config.xml. Adding it to the project
[05:37:49]: ▸ Installing "com.paypal.cordova.mobilesdk" for ios
[05:38:18]: ▸ Installing "card.io.cordova.mobilesdk" for ios
[05:38:20]: ▸ Adding com.paypal.cordova.mobilesdk to package.json
[05:38:20]: ▸ Saved plugin info for "com.paypal.cordova.mobilesdk" to config.xml
[05:38:20]: ▸ Discovered plugin "cordova-plugin-stripe" in config.xml. Adding it to the project
[05:38:41]: ▸ Installing "cordova-plugin-stripe" for ios
[05:38:42]: ▸ Adding cordova-plugin-stripe to package.json
[05:38:42]: ▸ Saved plugin info for "cordova-plugin-stripe" to config.xml
[05:38:42]: ▸ Discovered plugin "cordova-plugin-geolocation" in config.xml. Adding it to the project
[05:39:03]: ▸ Installing "cordova-plugin-geolocation" for ios
[05:39:03]: ▸ Adding cordova-plugin-geolocation to package.json
[05:39:03]: ▸ Saved plugin info for "cordova-plugin-geolocation" to config.xml
[05:39:03]: ▸ Discovered plugin "cordova-plugin-file" in config.xml. Adding it to the project
[05:39:24]: ▸ Installing "cordova-plugin-file" for ios
[05:39:25]: ▸ Adding cordova-plugin-file to package.json
[05:39:25]: ▸ Saved plugin info for "cordova-plugin-file" to config.xml
[05:39:25]: ▸ Discovered plugin "cordova-plugin-x-toast" in config.xml. Adding it to the project
[05:39:45]: ▸ Installing "cordova-plugin-x-toast" for ios
[05:39:45]: ▸ Adding cordova-plugin-x-toast to package.json
[05:39:45]: ▸ Saved plugin info for "cordova-plugin-x-toast" to config.xml
[05:39:45]: ▸ Discovered plugin "cordova-plugin-streaming-media" in config.xml. Adding it to the project
[05:40:09]: ▸ Installing "cordova-plugin-streaming-media" for ios
[05:40:09]: ▸ Adding cordova-plugin-streaming-media to package.json
[05:40:09]: ▸ Saved plugin info for "cordova-plugin-streaming-media" to config.xml
[05:40:09]: ▸ Discovered plugin "mx.ferreyra.callnumber" in config.xml. Adding it to the project
[05:40:31]: ▸ Installing "call-number" for ios
[05:40:31]: ▸ Adding call-number to package.json
[05:40:31]: ▸ Saved plugin info for "call-number" to config.xml
[05:40:31]: ▸ Discovered plugin "cordova-android-play-services-gradle-release" in config.xml. Adding it to the project
[05:40:52]: ▸ Installing "cordova-android-play-services-gradle-release" for ios
[05:40:52]: ▸ Adding cordova-android-play-services-gradle-release to package.json
[05:40:52]: ▸ Saved plugin info for "cordova-android-play-services-gradle-release" to config.xml
[05:40:52]: ▸ Discovered plugin "cordova-plugin-nativestorage" in config.xml. Adding it to the project
[05:41:13]: ▸ Installing "cordova-plugin-nativestorage" for ios
[05:41:13]: ▸ Adding cordova-plugin-nativestorage to package.json
[05:41:13]: ▸ Saved plugin info for "cordova-plugin-nativestorage" to config.xml
[05:41:13]: ▸ Discovered plugin "cordova-plugin-facebook4" in config.xml. Adding it to the project
[05:41:37]: ▸ Installing "cordova-plugin-facebook4" for ios
[05:41:38]: ▸ Adding cordova-plugin-facebook4 to package.json
[05:41:38]: ▸ Saved plugin info for "cordova-plugin-facebook4" to config.xml
[05:41:38]: ▸ Discovered plugin "phonegap-plugin-push" in config.xml. Adding it to the project
[05:41:59]: ▸ Installing "phonegap-plugin-push" for ios
[05:42:07]: ▸ % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[05:42:07]: ▸ Dload  Upload   Total   Spent    Left  Speed
[05:42:07]: ▸    100 7878k  100 7878k    0     0  13.6M      0 --:--:-- --:--:-- --:--:-- 13.6M
[05:42:08]: ▸ % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[05:42:08]: ▸ Dload  Upload   Total   Spent    Left  Speed
[05:42:08]: ▸    100 1114k  100 1114k    0     0  4729k      0 --:--:-- --:--:-- --:--:-- 4744k
[05:42:08]: ▸ % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[05:42:08]: ▸ Dload  Upload   Total   Spent    Left  Speed
[05:42:09]: ▸ 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
[05:42:09]: ▸ 4 2069k    4 96282    0     0   450k      0  0:00:04 --:--:--  0:00:04  449k
[05:42:09]: ▸ 100 2069k  100 2069k    0     0  6769k      0 --:--:-- --:--:-- --:--:-- 6761k
[05:42:09]: ▸ % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[05:42:09]: ▸ Dload  Upload   Total   Spent    Left  Speed
[05:42:09]: ▸ 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
[05:42:09]: ▸ 100 2943k  100 2943k    0     0  10.0M      0 --:--:-- --:--:-- --:--:-- 10.0M
[05:42:09]: ▸ Cloning into '/var/folders/6l/lbc4lxnx2_b6rg4370nwfhy40000gn/T/d20190108-513-193fexf'...
[05:42:10]: ▸ Note: checking out '484a1bb5b366119a79863801c92d8a0abc3c6ebb'.
[05:42:10]: ▸ You are in 'detached HEAD' state. You can look around, make experimental
[05:42:10]: ▸ changes and commit them, and you can discard any commits you make in this
[05:42:10]: ▸ state without impacting any branches by performing another checkout.
[05:42:10]: ▸ If you want to create a new branch to retain commits you create, you may
[05:42:10]: ▸ do so (now or later) by using -b with the checkout command again. Example:
[05:42:10]: ▸ git checkout -b 
[05:42:11]: ▸ Cloning into '/var/folders/6l/lbc4lxnx2_b6rg4370nwfhy40000gn/T/d20190108-513-1ts17pm'...
[05:42:14]: ▸ Note: checking out '48cb18e5c419ddd23d9badcfe4e9df7bde1979b2'.
[05:42:14]: ▸ You are in 'detached HEAD' state. You can look around, make experimental
[05:42:14]: ▸ changes and commit them, and you can discard any commits you make in this
[05:42:14]: ▸ state without impacting any branches by performing another checkout.
[05:42:14]: ▸ If you want to create a new branch to retain commits you create, you may
[05:42:14]: ▸ do so (now or later) by using -b with the checkout command again. Example:
[05:42:14]: ▸ git checkout -b 
[05:42:17]: ▸ % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
[05:42:17]: ▸ Dload  Upload   Total   Spent    Left  Speed
[05:42:17]: ▸    100   120    0   120    0     0    328      0 --:--:-- --:--:-- --:--:--   328
[05:42:18]: ▸    100  241k  100  241k    0     0   248k      0 --:--:-- --:--:-- --:--:--  462k
[05:42:28]: ▸ Adding phonegap-plugin-push to package.json
[05:42:28]: ▸ Saved plugin info for "phonegap-plugin-push" to config.xml
[05:42:28]: ▸ Discovered plugin "cordova-support-google-services" in config.xml. Adding it to the project
[05:42:51]: ▸ Installing "cordova-support-google-services" for ios
[05:42:51]: ▸ Adding cordova-support-google-services to package.json
[05:42:51]: ▸ Saved plugin info for "cordova-support-google-services" to config.xml
[05:42:51]: ▸ Discovered plugin "cordova-plugin-firebase" in config.xml. Adding it to the project
[05:43:14]: ▸ Installing "cordova-plugin-firebase" for ios
[05:43:16]: ▸ Adding cordova-plugin-firebase to package.json
[05:43:16]: ▸ Saved plugin info for "cordova-plugin-firebase" to config.xml
[05:43:18]: ▸ Preparing Firebase on iOS
[05:43:18]: ▸ --save flag or autosave detected
[05:43:18]: ▸ Saving ios@~4.5.5 into config.xml file ...
[05:43:18]: ----------------------------------------
[05:43:18]: --- Step: update_project_codesigning ---
[05:43:18]: ----------------------------------------
==========================================
This action (update_project_codesigning) is deprecated
This plugin is deprecated in favor of core action shipped with fastlane, parameters are exactly the same, new action name is automatic_code_signing, there are also some helpers enable_automatic_code_signing, disable_automatic_code_signing where you only need the project path set :)
==========================================


+-----------------------+-----------------------------------------------------------------------------+
|                               Summary for Update Project Codesigning                                |
+-----------------------+-----------------------------------------------------------------------------+
| path                  | /Users/ionic/builds/Fling-Asia/Fling-Food-App/platforms/ios/Fling.xcodeproj |
| use_automatic_signing | false                                                                       |
| team_id               | SQD923G458                                                                  |
+-----------------------+-----------------------------------------------------------------------------+

[05:43:19]: Updating the Automatic Codesigning flag to disabled for the given project '/Users/ionic/builds/Fling-Asia/Fling-Food-App/platforms/ios/Fling.xcodeproj/project.pbxproj'
[05:43:19]: Seems to be a very old project file format
[05:43:19]: PLEASE BACKUP ALL FILES before doing this.
[05:43:19]: Upgrading project to use xcode8 signing stuff
[05:43:19]: Successfully updated project settings to use ProvisioningStyle 'Manual'
[05:43:19]: Modified Targets:
[05:43:19]: 	 * Fling
[05:43:19]: -----------------------------------------
[05:43:19]: --- Step: update_project_provisioning ---
[05:43:19]: -----------------------------------------
[05:43:19]: You’re updating provisioning profiles directly in your project, but have you considered easier ways to do code signing?
[05:43:19]: https://docs.fastlane.tools/codesigning/GettingStarted/
[05:43:19]: Downloading root certificate from (https://www.apple.com/appleca/AppleIncRootCertificate.cer) to path '/tmp/AppleIncRootCertificate.cer'
[05:43:19]: Parsing mobile provisioning profile from '/Users/ionic/builds/Fling-Asia/Fling-Food-App/provision_file.mobileprovision'
[05:43:19]: Going to update project '/Users/ionic/builds/Fling-Asia/Fling-Food-App/platforms/ios/Fling.xcodeproj' with UUID
[05:43:19]: Updating target Fling...
[05:43:19]: Updating configuration Debug...
[05:43:19]: Updating configuration Release...
[05:43:19]: Successfully updated project settings in '/Users/ionic/builds/Fling-Asia/Fling-Food-App/platforms/ios/Fling.xcodeproj'
[05:43:19]: -----------------
[05:43:19]: --- Step: gym ---
[05:43:19]: -----------------
[05:43:20]: $ xcodebuild -showBuildSettings -workspace /Users/ionic/builds/Fling-Asia/Fling-Food-App/platforms/ios/Fling.xcworkspace -scheme Fling
[05:43:23]: Command timed out after 3 seconds on try 1 of 4, trying again with a 6 second timeout...
[05:43:29]: Command timed out after 6 seconds on try 2 of 4, trying again with a 12 second timeout...
[05:43:34]: Detected provisioning profile mapping: {:"com.fling.delivery"=>"Fling Drone Delivery"}

+--------------------------------------------------------+-------------------------------------------------------------------------------+
|                                                        Summary for gym 2.105.2                                                         |
+--------------------------------------------------------+-------------------------------------------------------------------------------+
| workspace                                              | /Users/ionic/builds/Fling-Asia/Fling-Food-App/platforms/ios/Fling.xcworkspace |
| output_directory                                       | /Users/ionic/builds/Fling-Asia/Fling-Food-App                                 |
| output_name                                            | fd7bf774-3839-456e-8b96-49f0c0babe52-app-store                                |
| scheme                                                 | Fling                                                                         |
| codesigning_identity                                   | iPhone Distribution: Fling Company Limited (SQD923G458)                       |
| export_team_id                                         | SQD923G458                                                                    |
| export_options.provisioningProfiles.com.fling.delivery | Fling Drone Delivery                                                          |
| destination                                            | generic/platform=iOS                                                          |
| build_path                                             | /Users/ionic/Library/Developer/Xcode/Archives/2019-01-08                      |
| clean                                                  | false                                                                         |
| silent                                                 | false                                                                         |
| skip_package_ipa                                       | false                                                                         |
| export_method                                          | app-store                                                                     |
| result_bundle                                          | false                                                                         |
| buildlog_path                                          | ~/Library/Logs/gym                                                            |
| skip_profile_detection                                 | false                                                                         |
| xcode_path                                             | /Applications/Xcode.app                                                       |
+--------------------------------------------------------+-------------------------------------------------------------------------------+

[05:43:34]: $ set -o pipefail && xcodebuild -workspace /Users/ionic/builds/Fling-Asia/Fling-Food-App/platforms/ios/Fling.xcworkspace -scheme Fling -destination 'generic/platform=iOS' -archivePath /Users/ionic/Library/Developer/Xcode/Archives/2019-01-08/fd7bf774-3839-456e-8b96-49f0c0babe52-app-store\ 2019-01-08\ 05.43.34.xcarchive archive CODE_SIGN_IDENTITY=iPhone\ Distribution:\ Fling\ Company\ Limited\ \(SQD923G458\) | tee /Users/ionic/Library/Logs/gym/Fling-Fling.log | xcpretty
[05:43:39]: ▸ duplicate output file '/Users/ionic/Library/Developer/Xcode/DerivedData/Fling-hbhqbfsyhjcxichdzeysuuastxey/Build/Intermediates.noindex/ArchiveIntermediates/Fling/InstallationBuildProductsLocation/Applications/Fling.app/GoogleService-Info.plist' on task: CopyPlistFile /Users/ionic/Library/Developer/Xcode/DerivedData/Fling-hbhqbfsyhjcxichdzeysuuastxey/Build/Intermediates.noindex/ArchiveIntermediates/Fling/InstallationBuildProductsLocation/Applications/Fling.app/GoogleService-Info.plist /Users/ionic/builds/Fling-Asia/Fling-Food-App/platforms/ios/Fling/Resources/app/GoogleService-Info.plist (in target 'Fling')
[05:43:39]: ▸ ❌  error: Multiple commands produce '/Users/ionic/Library/Developer/Xcode/DerivedData/Fling-hbhqbfsyhjcxichdzeysuuastxey/Build/Intermediates.noindex/ArchiveIntermediates/Fling/InstallationBuildProductsLocation/Applications/Fling.app/GoogleService-Info.plist':
[05:43:39]: ▸ ** ARCHIVE FAILED **
duplicate output file '/Users/ionic/Library/Developer/Xcode/DerivedData/Fling-hbhqbfsyhjcxichdzeysuuastxey/Build/Intermediates.noindex/ArchiveIntermediates/Fling/InstallationBuildProductsLocation/Applications/Fling.app/GoogleService-Info.plist' on task: CopyPlistFile /Users/ionic/Library/Developer/Xcode/DerivedData/Fling-hbhqbfsyhjcxichdzeysuuastxey/Build/Intermediates.noindex/ArchiveIntermediates/Fling/InstallationBuildProductsLocation/Applications/Fling.app/GoogleService-Info.plist /Users/ionic/builds/Fling-Asia/Fling-Food-App/platforms/ios/Fling/Resources/app/GoogleService-Info.plist (in target 'Fling')

❌  error: Multiple commands produce '/Users/ionic/Library/Developer/Xcode/DerivedData/Fling-hbhqbfsyhjcxichdzeysuuastxey/Build/Intermediates.noindex/ArchiveIntermediates/Fling/InstallationBuildProductsLocation/Applications/Fling.app/GoogleService-Info.plist':


** ARCHIVE FAILED **
[05:43:39]: Exit status: 65

+---------------+-------------------------+
|            Build environment            |
+---------------+-------------------------+
| xcode_path    | /Applications/Xcode.app |
| gym_version   | 2.105.2                 |
| export_method | app-store               |
| sdk           | iPhoneOS12.0.sdk        |
+---------------+-------------------------+

[05:43:39]: ▸ Build system information
[05:43:39]: ▸ error: Multiple commands produce '/Users/ionic/Library/Developer/Xcode/DerivedData/Fling-hbhqbfsyhjcxichdzeysuuastxey/Build/Intermediates.noindex/ArchiveIntermediates/Fling/InstallationBuildProductsLocation/Applications/Fling.app/GoogleService-Info.plist':
[05:43:39]: ▸ 1) Target 'Fling' (project 'Fling') has copy command from '/Users/ionic/builds/Fling-Asia/Fling-Food-App/platforms/ios/Fling/Resources/GoogleService-Info.plist' to '/Users/ionic/Library/Developer/Xcode/DerivedData/Fling-hbhqbfsyhjcxichdzeysuuastxey/Build/Intermediates.noindex/ArchiveIntermediates/Fling/InstallationBuildProductsLocation/Applications/Fling.app/GoogleService-Info.plist'
[05:43:39]: ▸ 2) Target 'Fling' (project 'Fling') has copy command from '/Users/ionic/builds/Fling-Asia/Fling-Food-App/platforms/ios/Fling/Resources/app/GoogleService-Info.plist' to '/Users/ionic/Library/Developer/Xcode/DerivedData/Fling-hbhqbfsyhjcxichdzeysuuastxey/Build/Intermediates.noindex/ArchiveIntermediates/Fling/InstallationBuildProductsLocation/Applications/Fling.app/GoogleService-Info.plist'
[05:43:39]: 
[05:43:39]: ⬆️  Check out the few lines of raw `xcodebuild` output above for potential hints on how to solve this error
[05:43:39]: 📋  For the complete and more detailed error log, check the full log at:
[05:43:39]: 📋  /Users/ionic/Library/Logs/gym/Fling-Fling.log
[05:43:39]: 
[05:43:39]: Looks like fastlane ran into a build/archive error with your project
[05:43:39]: It's hard to tell what's causing the error, so we wrote some guides on how
[05:43:39]: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
[05:43:39]: Before submitting an issue on GitHub, please follow the guide above and make
[05:43:39]: sure your project is set up correctly.
[05:43:39]: fastlane uses `xcodebuild` commands to generate your binary, you can see the
[05:43:39]: the full commands printed out in yellow in the above log.
[05:43:39]: Make sure to inspect the output above, as usually you'll find more error information there
[05:43:39]: 
[05:43:39]: -------------------------
[05:43:39]: --- Step: upload_logs ---
[05:43:39]: -------------------------
[05:43:42]: ---------------------------
[05:43:42]: --- Step: shell command ---
[05:43:42]: ---------------------------
[05:43:42]: -----------------------------
[05:43:42]: --- Step: delete_keychain ---
[05:43:42]: -----------------------------
[05:43:42]: Error building the application - see the log above
+-------------------------------------+----------------------------------------------------------------------------------+
|                                                      Lane Context                                                      |
+-------------------------------------+----------------------------------------------------------------------------------+
| DEFAULT_PLATFORM                    | ios                                                                              |
| PLATFORM_NAME                       | ios                                                                              |
| LANE_NAME                           | ios package_build                                                                |
| DOWNLOAD_CERTS_CODESIGNING_IDENTITY | iPhone Distribution: Fling Company Limited (SQD923G458)                          |
| DOWNLOAD_CERTS_TEAM_ID              | SQD923G458                                                                       |
| DOWNLOAD_CERTS_PROJECT_NAME         | Fling                                                                            |
| DOWNLOAD_CERTS_CERT_PATH            | /Users/ionic/builds/Fling-Asia/Fling-Food-App/cert_file.p12                      |
| DOWNLOAD_CERTS_PROVISIONING_PATH    | /Users/ionic/builds/Fling-Asia/Fling-Food-App/provision_file.mobileprovision     |
| SIGH_PROFILE_PATHS                  | ["/Users/ionic/builds/Fling-Asia/Fling-Food-App/provision_file.mobileprovision"] |
+-------------------------------------+----------------------------------------------------------------------------------+
[05:43:42]: Error building the application - see the log above

+------+-----------------------------+-------------+
|                 fastlane summary                 |
+------+-----------------------------+-------------+
| Step | Action                      | Time (in s) |
+------+-----------------------------+-------------+
| 1    | default_platform            | 0           |
| 2    | build_summary               | 3           |
| 3    | add_git_credentials         | 0           |
| 4    | modify_config_xml           | 0           |
| 5    | create_keychain             | 0           |
| 6    | download_certs              | 1           |
| 7    | import_certificate          | 0           |
| 8    | build_pro_app               | 106         |
| 9    | add_cordova_to_index        | 0           |
| 10   | cordova platform add ios    | 501         |
| 11   | update_project_codesigning  | 0           |
| 12   | update_project_provisioning | 0           |
| 💥   | gym                         | 19          |
| 14   | upload_logs                 | 2           |
| 15   | shell command               | 0           |
| 16   | delete_keychain             | 0           |
+------+-----------------------------+-------------+

[05:43:42]: fastlane finished with errors
WARNING: Nokogiri was built against LibXML version 2.9.2, but has dynamically loaded 2.9.4

[!] Error building the application - see the log above
\e[91mFailed to upload ipa to storage please retry your build.\e[0m
Running after script...
$ clean-up
Cleaning up files...
Successful clean up
ERROR: Job failed: Process exited with: 1. Reason was:  ()

@janpio
Copy link
Collaborator

janpio commented Jan 8, 2019

@MichaelCurrie I don't see anything related to fastlane-plugin-cordova_screenshots in your output, what am I missing here?

@anh1979
Copy link

anh1979 commented Jan 24, 2019

@janpio: Hi, I am encountering the same message when I am generating screenshots in your plugin "fastlane-plugin-ionic_integration" (using Xcode 10)...

16:40:57 duplicate output file '/Users/administrator/Jenkins/workspace/generatescreenshots/app/fastlane/DerivedData/Build/Products/Debug-iphonesimulator/ionic-screen-shots-Runner.app/PlugIns/ionic-screen-shots.xctest/Info.plist' on task: ProcessInfoPlistFile /Users/administrator/Jenkins/workspace/generatescreenshots/app/fastlane/DerivedData/Build/Products/Debug-iphonesimulator/ionic-screen-shots-Runner.app/PlugIns/ionic-screen-shots.xctest/Info.plist /Users/administrator/Jenkins/workspace/generatescreenshots/app/fastlane/ionic/config/ios/ui-tests/ionic-screen-shots/Info.plist (in target 'ionic-screen-shots')
16:40:57 
16:40:57 ❌  error: Multiple commands produce '/Users/administrator/Jenkins/workspace/generatescreenshots/app/fastlane/DerivedData/Build/Products/Debug-iphonesimulator/ionic-screen-shots-Runner.app/PlugIns/ionic-screen-shots.xctest/Info.plist':

Any idea?
in Xcode 9.x everything was fine, screenshots were generated - and after updating... no way
Your help is highly appreciated.

@janpio
Copy link
Collaborator

janpio commented Jan 24, 2019

Sorry, I have no idea. Can you reproduce this with a minimal, new iOS project? If not, what is different in your project that could cause something like this?

@anh1979
Copy link

anh1979 commented Jan 24, 2019

Ha, I got it!
add xcargs "-UseNewBuildSystem=NO" to your Snapfile - found it somewhere, but I am to screwed up to give credits, sorry.
Anne

@brownoxford
Copy link
Collaborator

Closing this out in favor of issue #25

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

5 participants