AssistoLab / DropDown

A Material Design drop down for iOS
MIT License
2.44k stars 622 forks source link

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

Open ville-nettia opened 1 year ago

ville-nettia commented 1 year ago

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)
mahmoudOmara commented 1 year ago

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

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

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
gregorosaurus commented 1 year ago

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.

thingineeer commented 1 year ago

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