contentful / contentful.swift

A delightful Swift interface to Contentful's content delivery API.
MIT License
202 stars 82 forks source link

The Contentful framework fails to build in XCode Version 14.3.1 #386

Closed asaadjaber closed 1 month ago

asaadjaber commented 1 year ago

I experienced an issue building the Contentful framework in XCode Version 14.3.1 on MacOS 13.4.

When I built the Contentful.xcodeproj project in XCode with the platform destination set to iPhone 14 Pro, I got a build error. The error was in relation to the libarclite library in the XCode Toolchain. A file from the library was not found.

jshier commented 1 year ago

This is due to the podspec having an iOS deployment target of iOS 8, which is no longer supported by Xcode 14.3 due to libarclite being removed. The podspec should be updated to reflect a more modern deployment target, but in the meantime you can just remove the deployment targets from the pods so they end up using the integrated target's deployment instead.

post_install do | installer |
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
      config.build_settings.delete 'WATCHOS_DEPLOYMENT_TARGET'
    end
  end
end
jshier commented 1 year ago

This is also #331.

mariuskatcontentful commented 1 month ago

I think its resolved. Any issues let me know