Texture icon indicating copy to clipboard operation
Texture copied to clipboard

Texture won't compile with Xcode 12 beta 4

Open mycroftcanner opened this issue 6 years ago • 12 comments

Texture won't compile with Xcode 12 beta 4 because of an issue in PINCache and PINRemoteIMage

mycroftcanner avatar Aug 07 '20 14:08 mycroftcanner

same issue here

k1ngcyk avatar Aug 11 '20 01:08 k1ngcyk

Same with me

rahulvyas avatar Aug 11 '20 13:08 rahulvyas

There's an issue in the PINRemoteImage repo, and a PR too. https://github.com/pinterest/PINRemoteImage/issues/559

noremac avatar Aug 11 '20 15:08 noremac

Temporary Workaround

ENV['COCOAPODS_DISABLE_STATS'] = "true"
use_frameworks!

target 'XX' do
    platform :ios, '13.6'
    pod 'Texture', :git => 'https://github.com/TextureGroup/Texture', :branch => 'master'
    pod 'PINRemoteImage', :git => 'https://github.com/zacwest/PINRemoteImage', :branch => 'fix-xcode-12.0b4'
    pod 'PINCache', :git => 'https://github.com/pinterest/PINCache', :branch => 'master'
end

zboralski avatar Aug 12 '20 11:08 zboralski

@zboralski

Temporary Workaround

ENV['COCOAPODS_DISABLE_STATS'] = "true"
use_frameworks!

target 'XX' do
    platform :ios, '13.6'
    pod 'Texture', :git => 'https://github.com/TextureGroup/Texture', :branch => 'master'
    pod 'PINRemoteImage', :git => 'https://github.com/zacwest/PINRemoteImage', :branch => 'fix-xcode-12.0b4'
    pod 'PINCache', :git => 'https://github.com/pinterest/PINCache', :branch => 'master'
end

I was failed when i tried your solution.

  In Podfile:
    PINCache (from `https://github.com/pinterest/PINCache`, branch `master`)
    PINRemoteImage (from `https://github.com/zacwest/PINRemoteImage`, branch `fix-xcode-12.0b4`) was resolved to 3.0.0, which depends on
    PINRemoteImage/PINCache (= 3.0.0) was resolved to 3.0.0, which depends on
        PINCache (= 3.0.1-beta.8)

jabbarwockeez avatar Aug 25 '20 02:08 jabbarwockeez

Experiencing the same issue as highlighted by @jabbarwockeez.

SleepiestAdam avatar Aug 28 '20 16:08 SleepiestAdam

@zboralski

Temporary Workaround

ENV['COCOAPODS_DISABLE_STATS'] = "true"
use_frameworks!

target 'XX' do
    platform :ios, '13.6'
    pod 'Texture', :git => 'https://github.com/TextureGroup/Texture', :branch => 'master'
    pod 'PINRemoteImage', :git => 'https://github.com/zacwest/PINRemoteImage', :branch => 'fix-xcode-12.0b4'
    pod 'PINCache', :git => 'https://github.com/pinterest/PINCache', :branch => 'master'
end

I was failed when i tried your solution.

  In Podfile:
    PINCache (from `https://github.com/pinterest/PINCache`, branch `master`)
    PINRemoteImage (from `https://github.com/zacwest/PINRemoteImage`, branch `fix-xcode-12.0b4`) was resolved to 3.0.0, which depends on
    PINRemoteImage/PINCache (= 3.0.0) was resolved to 3.0.0, which depends on
        PINCache (= 3.0.1-beta.8)

do this pod 'Texture', '3.0.0' pod 'PINRemoteImage', :git => 'https://github.com/pinterest/PINRemoteImage', :branch => 'master'

this works for me

faizpathan avatar Sep 02 '20 11:09 faizpathan

There's an issue in the PINRemoteImage repo, and a PR too. pinterest/PINRemoteImage#559

This one has been fixed already, but OP's issue is still a problem for us 😬

rogerluan avatar Sep 04 '20 00:09 rogerluan

Finally works using Texture, PINRemoteImage, PinCache master branches. Thanks to all involved <3

Maybe we should keep this issue open until the release version works correctly and according to the README.md?

mycroftcanner avatar Sep 05 '20 12:09 mycroftcanner

Finally works using Texture, PINRemoteImage, PinCache master branches. Thanks to all involved <3

Maybe we should keep this issue open until the release version works correctly and according to the README.md?

How does your Podfile look like, to make it work? Did you have to specify tag, branch or version for Texture, PINRemoteImage, or PinCache?

Thanks in advance!

rogerluan avatar Sep 06 '20 00:09 rogerluan

Builds successfully in Xcode 12 using the latest Texture (pod 'Texture') and without specifying its components versions/branches (so, currently it's PINCache 3.0.1, PINOperation 1.2, PINRemoteImage 3.0.1 and Texture 3.0.0 by default.)

lazarevzubov avatar Sep 18 '20 09:09 lazarevzubov

for hotfix pincache with version 2.8.1, just use it on cocoapod file:

          if target.name == "PINCache" or target.name == "PINRemoteImage"
                puts "Updating #{target.name} OTHER_CFLAGS"
                target.build_configurations.each do |config|
                    config.build_settings['OTHER_CFLAGS'] = '-Xclang -fcompatibility-qualified-id-block-type-checking'
                end
            end

MeGaPk avatar Sep 21 '20 13:09 MeGaPk