cezheng / Fuzi

A fast & lightweight XML & HTML parser in Swift with XPath & CSS support
MIT License
1.06k stars 150 forks source link

File not found : ..../libcarlite_iphonesimulator.a #124

Open ntnbkta opened 1 year ago

ntnbkta commented 1 year ago

Description:

My application consumes Fuzi as a cocoapod and is updated to the latest version 3.1.3. When compiled with Xcode 14.2, the build is green. But when compiled with Xcode 14.3 on an iPhone 14 Pro Simulator, we are seeing a build error.

Environment

How to reproduce:

Consume Fuzi 3.1.3 as cocoapods in a Xcode project and try to build it.

Screenshot 2023-05-18 at 2 18 08 PM
AlexeyMatrosov commented 11 months ago

@ntnbkta I have same problem. You can add next lines to your pod file:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
        if config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"] == "8.0" or config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"] == "9.0" or config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"] == "10.0" then
                config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"] = "11.0";
        end
    end
  end
end