Friday, June 7, 2024
HomeiOS DevelopmentI am unable to construct Flutter IPA file inside Gitlab Runner '...

I am unable to construct Flutter IPA file inside Gitlab Runner ‘ Constructing for ‘iOS’, however linking in dylib constructed for ‘macOS macCatalyst zippered(macOS/Catalyst)”


I am making an attempt to construct .ipa file utilizing Gitlab Runner. I can construct ipa file domestically utilizing the command beneath.

flutter construct ipa --release --obfuscate --split-debug-info=construct/ios/ipa/debug_symbols --build-number=${CI_JOB_ID:0:8} --export-options-plist ./ios/export.plist 

However when i used it in my Gitlab Runner (native occasion, utilizing my Macbook to run the job so it must be principally the identical atmosphere, proper?). The job didn’t run. That is the error.

Error (Xcode): Constructing for 'iOS', however linking in dylib (/Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/lib/libobjc.A.tbd) constructed for 'macOS macCatalyst zippered(macOS/Catalyst)'
Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)
Encountered error whereas archiving for machine.

Looking Google and the general public who’ve related points are attempting to construct iOS Simulator, not iOS or IPA file. I could not reproduced this concern domestically so i don’t know what is going on on. And i can not use --verbose as Gitlab itself restricted the log output and i could not see previous about 6000 traces. Anybody know what is the trigger right here?

full .gitlab-ci.yml script half

  before_script:
  - flutter clear 
  - flutter pub get
  - flutter physician -v
  - ls -la 
  - echo 'unset cd'>>~/.bash_profile; supply ~/.bash_profile
  - cd ios 
  - pod deintegrate
  - pod set up
  - cd ..
  - dart run build_runner construct -d 
  # obtain safe recordsdata from gitlab
  - /usr/native/bin/download-secure-files/download-secure-files 
  script: 
  - flutter construct ipa --release --obfuscate --split-debug-info=construct/ios/ipa/debug_symbols --build-number=${CI_JOB_ID:0:8} --export-options-plist ./ios/export.plist 
  - cd ios && pwd && bundle set up && bundle exec fastlane move_files



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments