Baseflow / Baseflow/flutter_cached_network_image

linking error when compiling for iOS with xcodebuild 14.3

Open
#835 10 comments 5 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
2.6k
Forks
731
Avg merge
3d 9h
Merged PRs (30d)
1

Description

## 🐛 Bug Report

when the library is added to the `pubspec.yaml`, irrespective of its use or not, if xcodebuild 14.3 is used to compile and run on iOS simulator, an error is raised:
```
Error (Xcode): File not found:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a

Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)

```

### Expected behavior
it should compile properly like with the previous version of xcode.

```
$ sudo xcode-select --switch /Applications/Xcode14.2.app 1
$ flutter run
Launching lib/main.dart on iPhone 14 Pro Max in debug mode...
Running Xcode build...
└─Compiling, linking and signing... 2,295ms
Xcode build done. 12.9s
Syncing files to device iPhone 14 Pro Max... 165ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

💪 Running with sound null safety 💪

An Observatory debugger and profiler on iPhone 14 Pro Max is available at: http://127.0.0.1:54943/GC7yUqS_ikQ=/
The Flutter DevTools debugger and profiler on iPhone 14 Pro Max is available at: http://127.0.0.1:9100?uri=http://127.0.0.1:54943/GC7yUqS_ikQ=/

```

### Reproduction steps
```
$ xcode-select --switch /Applications/Xcode14.2
$ flutter run
Launching lib/main.dart on iPhone 14 Pro Max in debug mode...
Running Xcode build...
Xcode build done. 10.1s
Failed to build iOS app
Error (Xcode): File not found:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a

Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)

Could not build the application for the simulator.
Error launching application on iPhone 14 Pro Max.
```

### Configuration

**Version:** 3.2.3
specifically, the problem is raised by `cached_network_image_platform_interface`

**Platform:**
- [x] :iphone: iOS
- [ ] :robot: Android

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the iOS simulator build with Flutter and Xcodebuild 14.3 using the package version 3.2.3 and the reported pubspec.yaml dependency. Inspect the cached_network_image_platform_interface iOS integration and the reported libarclite_iphonesimulator.a linker failure. Done means the app compiles and runs on the iOS simulator with Xcode 14.3, as it does with Xcode 14.2.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.