AssistoLab / DropDown

A Material Design drop down for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build issue: XCode 14.3 - File not found libarclite_iphonesimulator.a

ville-nettia opened this issue · comments

Adding DropDown Pod and building on XCode 14.3 gives the following build error when trying to run it on a simulator:

ld: file not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)

same here. I think the issue is that DroDown supports starting from iOS 8 which is not supported anymore.

  1. Download files from Libarclite-Files
  2. Add them to /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/

try it on your Podfile:

post_install do |installer|
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
      end
    end
  end

example :

target 'ProjectName' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for ProjectName

end

post_install do |installer|
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
      end
    end
  end

Same issue in Carthage. Looks like upping the min iOS version allows the project to build.
Might have to move off Carthage and just include the repo as a sub module if the repo isn't maintained anymore.

commented

Adding DropDown Pod and building on XCode 14.3 gives the following build error when trying to run it on a simulator:

ld: file not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)

It may be an issue with the iOS distribution version.

refer to this link
https://thingjin.tistory.com/entry/iOS-SDK-does-not-contain-libarclite-at-the-path