Flutter build ios failing : xcodebuild: error: Could not resolve package dependencies

Bitrise Build Issue Report template

Description of the issue

Flutter build ios is failing with this error: xcodebuild: error: Could not resolve package dependencies

ProcessException: Process exited abnormally:
Command line invocation:
/Applications/Xcode-11.7.app/Contents/Developer/usr/bin/xcodebuild -list
xcodebuild: error: Could not resolve package dependencies:
Packages are not supported when using legacy build locations, but the current project has them enabled.
Command: /usr/bin/xcodebuild -list
#0 RunResult.throwException (package:flutter_tools/src/base/process.dart:172:5)
#1 _DefaultProcessUtils.run (package:flutter_tools/src/base/process.dart:328:19)

#2 XcodeProjectInterpreter.getInfo (package:flutter_tools/src/ios/xcodeproj.dart:392:50)
#3 IosProject.projectInfo (package:flutter_tools/src/project.dart:531:67)
#4 IosProject.buildSettingsForBuildInfo (package:flutter_tools/src/project.dart:513:41)
#5 IosProject._parseProductBundleIdentifier (package:flutter_tools/src/project.dart:455:56)
#6 IosProject.productBundleIdentifier (package:flutter_tools/src/project.dart:432:47)
#7 BuildableIOSApp.fromProject (package:flutter_tools/src/application_package.dart:365:50)
#8 IOSApp.fromIosProject (package:flutter_tools/src/application_package.dart:348:28)
#9 ApplicationPackageStore.getPackageForPlatform (package:flutter_tools/src/application_package.dart:433:30)
#10 BuildIOSCommand.runCommand (package:flutter_tools/src/commands/build_ios.dart:93:59)
#11 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:977:18)
#12 _rootRunUnary (dart:async/zone.dart:1198:47)
#13 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
#14 _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
#15 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
#16 Future._propagateToListeners (dart:async/future_impl.dart:725:32)
#17 Future._completeWithValue (dart:async/future_impl.dart:529:5)
#18 Future._asyncCompleteWithValue. (dart:async/future_impl.dart:567:7)
#19 _rootRun (dart:async/zone.dart:1190:13)
#20 _CustomZone.run (dart:async/zone.dart:1093:19)
#21 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
#22 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)
#23 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#24 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#25 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#26 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)

Environment:

Where did the issue happen?
Stack: Xcode 11.7.x , on MacOs 10.15.6 (Catalina)

Which build Step causes the issue and which version of the step?

Flutter Build 0.13.2

Reproducibility

  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : NO
  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : NO
  • Does the issue happen sporadically, or every time? : every time
  • Does upgrading the build Step to the latest version help? : NO
  • When did the issue start? : From the beginning

Local reproduction

bitrise CLI is working fine with bitrise run primary

Build log

Hello @arnaudelub
Thank you for reaching out to Bitrise.
I believe this might help resolve your issue -

In the meantime, could you please enable Support Access so that I can access your build URL?

Thanks
Chaitanya

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.