swift – CircleCi IOS into Github


I am attempting to make use of Ci/Cd with circleci for IOS and I am getting an error for Fastlane, I am new to this I do not know what I am doing unsuitable. Additionally when attempting to get TestFlights and mentioned could not find xCode so no thought what that meant.

Additionally I searched up the exit standing and other people mentioned to show off include_simulator_logs : false utilizing scan(include_simulator_logs: false) however I don’t know how to do this both.

If anybody might help me perceive this and what I am doing unsuitable.

fastlane file

default_platform :ios

platform :ios do
  before_all do
    setup_circle_ci
  finish

  desc "Runs all of the checks"
  lane :check do
    scan
    snapshot
  finish

  desc "Advert-hoc construct"
  lane :adhoc do
    match(sort: "adhoc")
    gymnasium(export_method: "ad-hoc")
  finish

  desc "Submit a brand new Beta Construct to Apple TestFlight"
  desc "This may even ensure the profile is updated"
  lane :beta do
    match(sort: "appstore")
    gymnasium(export_method: "app-store")
  finish

  desc "Deploy a brand new model to the App Retailer"
  lane :launch do
    # match(sort: "appstore")
    # snapshot
    gymnasium # Construct your app - extra choices out there
    ship(power: true)
    # frameit
  finish
finish

yml file

model: 2
jobs:
  build-and-test:
    macos:
      xcode: "14.0.0"
    working_directory: /Customers/distiller/mission
    surroundings:
      FL_OUTPUT_DIR: output
      FASTLANE_LANE: check
    shell: /bin/bash --login -o pipefail
    steps:
      - checkout
      - run: bundle set up
      - run:
          title: Fastlane
          command: bundle exec fastlane $FASTLANE_LANE
      - store_artifacts:
          path: output
      - store_test_results:
          path: output/scan

  adhoc:
    macos:
      xcode: "14.0.0"
    working_directory: /Customers/a.dsswiftcoding/Desktop/CI:CDPractice/CDPractice
    surroundings:
      FL_OUTPUT_DIR: output
      FASTLANE_LANE: adhoc
    shell: /bin/bash --login -o pipefail
    steps:
      - checkout
      - run: bundle set up
      - run:
          title: Fastlane
          command: bundle exec fastlane $FASTLANE_LANE
      - store_artifacts:
          path: output/Sport.ipa

  beta:
    macos:
      xcode: "14.0.0"
    working_directory: /Customers/a.dsswiftcoding/Desktop/CI:CDPractice/CDPractice
    surroundings:
      FL_OUTPUT_DIR: output
      FASTLANE_LANE: beta
    shell: /bin/bash --login -o pipefail
    steps:
      - checkout
      - run: bundle set up
      - run:
          title: Fastlane
          command: bundle exec fastlane $FASTLANE_LANE
      - store_artifacts:
          path: output/Sport.ipa

workflows:
  model: 2
  build-test-adhoc:
    jobs:
      - build-and-test
      - adhoc:
          filters:
            branches:
              solely: improvement
          requires:
            - build-and-test
      #- beta:
          #filters:
            #branches:
              #solely: grasp
          #requires:
            #- build-and-test

#!/bin/bash --login -eo pipefail
bundle exec fastlane $FASTLANE_LANE
[⠋] 🚀 [⠙] 🚀 [⠹] 🚀 [⠸] 🚀 [⠼] 🚀 [⠴] 🚀 [⠦] 🚀 [⠧] 🚀 [⠇] 🚀 [⠏] 🚀 [⠋] 🚀 [✔] 🚀 
[03:21:40]: Sending nameless analytics data
[03:21:40]: Study extra at https://docs.fastlane.instruments/#metrics
[03:21:40]: No private or delicate knowledge is distributed.
[03:21:40]: You possibly can disable this by including `opt_out_usage` on the high of your Fastfile
tput: No worth for $TERM and no -T specified
tput: No worth for $TERM and no -T specified
[03:21:40]: ------------------------------
[03:21:40]: --- Step: default_platform ---
[03:21:40]: ------------------------------
[03:21:40]: Driving the lane 'ios check' 🚀
tput: No worth for $TERM and no -T specified
tput: No worth for $TERM and no -T specified
[03:21:40]: -----------------------------
[03:21:40]: --- Step: setup_circle_ci ---
[03:21:40]: -----------------------------
[03:21:40]: Creating non permanent keychain: "fastlane_tmp_keychain".
[03:21:40]: $ safety list-keychains -d consumer
[03:21:40]: ▸ "/Customers/distiller/Library/Keychains/fastlane_tmp_keychain-db"
[03:21:40]: Discovered keychain '/Customers/distiller/Library/Keychains/fastlane_tmp_keychain-db' in list-keychains, including to look record skipped
[03:21:40]: Enabling match readonly mode.
tput: No worth for $TERM and no -T specified
tput: No worth for $TERM and no -T specified
[03:21:40]: ------------------
[03:21:40]: --- Step: scan ---
[03:21:40]: ------------------
[03:21:40]: Resolving Swift Bundle Supervisor dependencies...
[03:21:40]: $ xcodebuild -resolvePackageDependencies -scheme LargerProject -project ./LargerProject.xcodeproj
[03:21:41]: ▸ Command line invocation:
[03:21:41]: ▸     /Purposes/Xcode-14.0.1.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -scheme LargerProject -project ./LargerProject.xcodeproj
[03:21:41]: ▸ Consumer defaults from command line:
[03:21:41]: ▸     IDEPackageSupportUseBuiltinSCM = YES
[03:22:07]: ▸ --- xcodebuild: WARNING: Utilizing the primary of a number of matching locations:
[03:22:07]: ▸ { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, title:Any iOS System }
[03:22:07]: ▸ { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, title:Any iOS Simulator System }
[03:22:07]: ▸ { platform:iOS Simulator, id:ED0388EB-57D2-48A2-923B-6777689AF205, OS:16.0, title:iPad (ninth technology) }
[03:22:07]: ▸ { platform:iOS Simulator, id:8AF6641E-544C-4186-AC2A-628F78546F56, OS:16.0, title:iPad Air (fifth technology) }
[03:22:07]: ▸ { platform:iOS Simulator, id:C3ED5639-902B-4599-B52F-4059CA4CD87B, OS:16.0, title:iPad Professional (11-inch) (third technology) }
[03:22:07]: ▸ { platform:iOS Simulator, id:DFA2EBFD-2E49-4ADE-9282-5C4D29B05047, OS:16.0, title:iPad Professional (12.9-inch) (fifth technology) }
[03:22:07]: ▸ { platform:iOS Simulator, id:987725E0-CD1D-42CB-98F5-8334EAE154BA, OS:16.0, title:iPad mini (sixth technology) }
[03:22:07]: ▸ { platform:iOS Simulator, id:92A00580-356F-4DB4-8CEC-EE875D922AB3, OS:16.0, title:iPhone 14 }
[03:22:07]: ▸ { platform:iOS Simulator, id:7E568AEA-F439-40C1-AA45-04D99F692876, OS:16.0, title:iPhone 14 Plus }
[03:22:07]: ▸ { platform:iOS Simulator, id:A6A8EE6B-F7F2-463C-A317-077B06E923C8, OS:16.0, title:iPhone 14 Professional }
[03:22:07]: ▸ { platform:iOS Simulator, id:7845B9E6-12A4-4328-9D14-B3F1BBB78A9A, OS:16.0, title:iPhone 14 Professional Max }
[03:22:07]: ▸ { platform:iOS Simulator, id:23D2BEBA-152E-471A-B503-EF719471093D, OS:16.0, title:iPhone SE (third technology) }
[03:22:07]: ▸ resolved supply packages: 
[03:22:07]: $ xcodebuild -showBuildSettings -scheme LargerProject -project ./LargerProject.xcodeproj
--- xcodebuild: WARNING: Utilizing the primary of a number of matching locations:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, title:Any iOS System }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, title:Any iOS Simulator System }
{ platform:iOS Simulator, id:ED0388EB-57D2-48A2-923B-6777689AF205, OS:16.0, title:iPad (ninth technology) }
{ platform:iOS Simulator, id:8AF6641E-544C-4186-AC2A-628F78546F56, OS:16.0, title:iPad Air (fifth technology) }
{ platform:iOS Simulator, id:C3ED5639-902B-4599-B52F-4059CA4CD87B, OS:16.0, title:iPad Professional (11-inch) (third technology) }
{ platform:iOS Simulator, id:DFA2EBFD-2E49-4ADE-9282-5C4D29B05047, OS:16.0, title:iPad Professional (12.9-inch) (fifth technology) }
{ platform:iOS Simulator, id:987725E0-CD1D-42CB-98F5-8334EAE154BA, OS:16.0, title:iPad mini (sixth technology) }
{ platform:iOS Simulator, id:92A00580-356F-4DB4-8CEC-EE875D922AB3, OS:16.0, title:iPhone 14 }
{ platform:iOS Simulator, id:7E568AEA-F439-40C1-AA45-04D99F692876, OS:16.0, title:iPhone 14 Plus }
{ platform:iOS Simulator, id:A6A8EE6B-F7F2-463C-A317-077B06E923C8, OS:16.0, title:iPhone 14 Professional }
{ platform:iOS Simulator, id:7845B9E6-12A4-4328-9D14-B3F1BBB78A9A, OS:16.0, title:iPhone 14 Professional Max }
{ platform:iOS Simulator, id:23D2BEBA-152E-471A-B503-EF719471093D, OS:16.0, title:iPhone SE (third technology) }
[03:22:10]: Command timed out after 3 seconds on strive 1 of 4, attempting once more with a 6 second timeout...
2022-09-18 03:22:11.314 xcodebuild[2426:16704] Requested however didn't discover extension level with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition
--- xcodebuild: WARNING: Utilizing the primary of a number of matching locations:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, title:Any iOS System }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, title:Any iOS Simulator System }
{ platform:iOS Simulator, id:ED0388EB-57D2-48A2-923B-6777689AF205, OS:16.0, title:iPad (ninth technology) }
{ platform:iOS Simulator, id:8AF6641E-544C-4186-AC2A-628F78546F56, OS:16.0, title:iPad Air (fifth technology) }
{ platform:iOS Simulator, id:C3ED5639-902B-4599-B52F-4059CA4CD87B, OS:16.0, title:iPad Professional (11-inch) (third technology) }
{ platform:iOS Simulator, id:DFA2EBFD-2E49-4ADE-9282-5C4D29B05047, OS:16.0, title:iPad Professional (12.9-inch) (fifth technology) }
{ platform:iOS Simulator, id:987725E0-CD1D-42CB-98F5-8334EAE154BA, OS:16.0, title:iPad mini (sixth technology) }
{ platform:iOS Simulator, id:92A00580-356F-4DB4-8CEC-EE875D922AB3, OS:16.0, title:iPhone 14 }
{ platform:iOS Simulator, id:7E568AEA-F439-40C1-AA45-04D99F692876, OS:16.0, title:iPhone 14 Plus }
{ platform:iOS Simulator, id:A6A8EE6B-F7F2-463C-A317-077B06E923C8, OS:16.0, title:iPhone 14 Professional }
{ platform:iOS Simulator, id:7845B9E6-12A4-4328-9D14-B3F1BBB78A9A, OS:16.0, title:iPhone 14 Professional Max }
{ platform:iOS Simulator, id:23D2BEBA-152E-471A-B503-EF719471093D, OS:16.0, title:iPhone SE (third technology) }
2022-09-18 03:22:13.211 xcodebuild[2430:16763] Requested however didn't discover extension level with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition
[03:22:15]: Discovered simulator "iPhone SE (third technology) (16.0)"

+------------------------------------------------+-------------------------------------------------------------------------------------------------+
|                                                             Abstract for scan 2.210.0                                                             |
+------------------------------------------------+-------------------------------------------------------------------------------------------------+
| mission                                        | ./LargerProject.xcodeproj                                                                       |
| scheme                                         | LargerProject                                                                                   |
| skip_detect_devices                            | false                                                                                           |
| ensure_devices_found                           | false                                                                                           |
| force_quit_simulator                           | false                                                                                           |
| reset_simulator                                | false                                                                                           |
| disable_slide_to_type                          | true                                                                                            |
| reinstall_app                                  | false                                                                                           |
| clear                                          | false                                                                                           |
| open_report                                    | false                                                                                           |
| output_directory                               | output/scan                                                                                     |
| output_types                                   | html,junit                                                                                      |
| buildlog_path                                  | output/buildlogs/scan                                                                           |
| include_simulator_logs                         | true                                                                                            |
| xcodebuild_formatter                           | xcpretty                                                                                        |
| output_remove_retry_attempts                   | false                                                                                           |
| derived_data_path                              | /Customers/distiller/Library/Developer/Xcode/DerivedData/LargerProject-aehvuzttkjynnhavttmxeauwgejq |
| should_zip_build_products                      | false                                                                                           |
| output_xctestrun                               | false                                                                                           |
| result_bundle                                  | false                                                                                           |
| use_clang_report_name                          | false                                                                                           |
| disable_concurrent_testing                     | false                                                                                           |
| skip_build                                     | false                                                                                           |
| slack_use_webhook_configured_username_and_icon | false                                                                                           |
| slack_username                                 | fastlane                                                                                        |
| slack_icon_url                                 | https://fastlane.instruments/property/img/fastlane_icon.png                                             |
| skip_slack                                     | false                                                                                           |
| slack_only_on_failure                          | false                                                                                           |
| xcodebuild_command                             | env NSUnbufferedIO=YES xcodebuild                                                               |
| skip_package_dependencies_resolution           | false                                                                                           |
| disable_package_automatic_updates              | false                                                                                           |
| use_system_scm                                 | false                                                                                           |
| number_of_retries                              | 0                                                                                               |
| fail_build                                     | true                                                                                            |
| xcode_path                                     | /Purposes/Xcode-14.0.1.app                                                                  |
+------------------------------------------------+-------------------------------------------------------------------------------------------------+

[03:22:15]: Disabling 'Slide to Kind' iPhone SE (third technology)
[03:22:15]: $ /usr/libexec/PlistBuddy -c "Add :KeyboardContinuousPathEnabled bool false" /Customers/distiller/Library/Developer/CoreSimulator/Units/23D2BEBA-152E-471A-B503-EF719471093D/knowledge/Library/Preferences/com.apple.keyboard.ContinuousPath.plist >/dev/null 2>&1
[03:22:15]: Booting iPhone SE (third technology)
[03:22:16]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -scheme LargerProject -project ./LargerProject.xcodeproj -derivedDataPath /Customers/distiller/Library/Developer/Xcode/DerivedData/LargerProject-aehvuzttkjynnhavttmxeauwgejq -destination 'platform=iOS Simulator,id=23D2BEBA-152E-471A-B503-EF719471093D' construct check | tee '/Customers/distiller/mission/output/buildlogs/scan/LargerProject-LargerProject.log' | xcpretty  --report html --output '/Customers/distiller/mission/output/scan/report.html' --report junit --output '/Customers/distiller/mission/output/scan/report.junit' --report junit --output '/var/folders/bl/wbxjgtzx7j5_mjsmfr3ynlc00000gp/T/junit_report20220918-2163-hy0fmt' 
[03:22:16]: ▸ Loading...
[03:23:27]: ▸ Compiling Important.storyboard
[03:23:31]: ▸ Compiling LaunchScreen.storyboard
[03:23:37]: ▸ Compiling SceneDelegate.swift
[03:23:43]: ▸ Compiling AppDelegate.swift
[03:23:43]: ▸ Compiling ViewController.swift
[03:23:43]: ▸ Processing Data.plist
[03:23:43]: ▸ Linking LargerProject
[03:23:45]: Operating Checks: ▸ Touching LargerProject.app (in goal 'LargerProject' from mission 'LargerProject')
[03:23:45]: ▸ Construct Succeeded
[03:23:46]: ▸ Linking LargerProject
[03:23:54]: ▸ Compiling LargerProjectUITests.swift
[03:23:54]: ▸ Compiling LargerProjectUITestsLaunchTests.swift
[03:23:54]: ▸ Processing empty-LargerProjectTests.plist
[03:23:54]: ▸ Compiling LargerProjectTests.swift
[03:23:54]: ▸ Linking LargerProjectTests
[03:23:55]: Operating Checks: ▸ Touching LargerProjectTests.xctest (in goal 'LargerProjectTests' from mission 'LargerProject')
[03:23:55]: ▸ Linking LargerProjectUITests
[03:23:55]: ▸ Processing empty-LargerProjectUITests.plist
[03:23:55]: Operating Checks: ▸ Touching LargerProjectUITests.xctest (in goal 'LargerProjectUITests' from mission 'LargerProject')
[03:28:10]: ▸ 2022-09-18 03:28:10.670 xcodebuild[2579:17857] [MT] IDETestOperationsObserverDebug: 254.754 elapsed -- Testing began accomplished.
[03:28:10]: ▸ 2022-09-18 03:28:10.670 xcodebuild[2579:17857] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- begin
[03:28:10]: ▸ 2022-09-18 03:28:10.670 xcodebuild[2579:17857] [MT] IDETestOperationsObserverDebug: 254.754 sec, +254.754 sec -- finish
[03:28:11]: ▸ Check Succeeded
tput: No worth for $TERM and no -T specified
tput: No worth for $TERM and no -T specified
[03:28:16]: ------------------------------
[03:28:16]: --- Gathering system logs ---
[03:28:16]: ------------------------------
[03:28:16]: $ xcrun simctl spawn 23D2BEBA-152E-471A-B503-EF719471093D log gather --start '2022-09-18 03:22:15' --output /Customers/distiller/mission/output/scan/system_logs-iPhone SE (third technology)_iOS_16.0.logarchive 2>/dev/null

[03:28:16]: Exit standing: 149
+------------------------------+-------------------------------------------------------------------------------------------------+
|                                                          Lane Context                                                          |
+------------------------------+-------------------------------------------------------------------------------------------------+
| DEFAULT_PLATFORM             | ios                                                                                             |
| PLATFORM_NAME                | ios                                                                                             |
| LANE_NAME                    | ios check                                                                                        |
| KEYCHAIN_PATH                | ~/Library/Keychains/fastlane_tmp_keychain                                                       |
| ORIGINAL_DEFAULT_KEYCHAIN    | "/Customers/distiller/Library/Keychains/login.keychain-db"                                          |
| SCAN_GENERATED_XCRESULT_PATH |                                                                                                 |
| SCAN_DERIVED_DATA_PATH       | /Customers/distiller/Library/Developer/Xcode/DerivedData/LargerProject-aehvuzttkjynnhavttmxeauwgejq |
| SCAN_GENERATED_PLIST_FILES   | []                                                                                              |
| SCAN_GENERATED_PLIST_FILE    |                                                                                                 |
+------------------------------+-------------------------------------------------------------------------------------------------+
[03:28:16]: Exit standing: 149

+------+------------------+-------------+
|           fastlane abstract            |
+------+------------------+-------------+
| Step | Motion           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 2    | setup_circle_ci  | 0           |
| 💥   | scan             | 396         |
+------+------------------+-------------+

[03:28:16]: fastlane completed with errors

[!] Exit standing: 149
[03:28:16]: Shutting down 23D2BEBA-152E-471A-B503-EF719471093D

Exited with code exit standing 1
CircleCI acquired exit code 1

Leave a Reply