cezheng / Fuzi

A fast & lightweight XML & HTML parser in Swift with XPath & CSS support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

ntnbkta opened this issue · comments

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.

  • Expected behaviour:
    Build error should not be seen and the compilation should be successful.

  • Actual behaviour:
    Build error is seen and the compilation fails.

Environment

  • Package Manager:

    • Carthage, version:
    • [ Y] CocoaPods, version: 1.12.1
    • Manually
  • Fuzi version: 3.1.3

  • Xcode version: 14.3

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

@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