50ButtonsEach / fliclib-ios

The fliclib framework for iOS
35 stars 5 forks source link

Archive failing #41

Closed kmcginnes closed 3 years ago

kmcginnes commented 4 years ago

Everything looks good from a compilation point of view with the new xcframework version. Thank you for putting that version out. This is a much better solution over all.

However, after running my branch adopting this new version on the build server we ran across an issue with the archive.

I'm having trouble deciphering the errors here, but we were able to reproduce this locally with Xcode 11.3. We plan to test newer versions of Xcode on Monday to see if that's the issue.

So two questions for you. First is there a new minimum requirement for Xcode (beyond 11.0 for XCFramework support) or a new minimum requirement for iOS deployment target? We noticed in the info.plist for fliclib.framework the DTPlatformVersion is 13.4.

The second question is do any of these logs make sense to you? Does it point to a specific problem that you know of?

Thanks for any help.

Stdout:
    Debug: SDK path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk
    Debug: SDK version: 13.2
    Debug: PATH: ['/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin', '/Applications/Xcode.app/Contents/Developer/usr/bin']
    Debug: Using: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo
    MachoInfo: cd /
    "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo" "-info" "/var/folders/rj/0ky8l48554x1z5lj36trcmjs242bs2/T/ipatool20200430-69559-j7fcfc/thinned-in/arm64/Payload/Redacted.app/Frameworks/fliclib.framework/fliclib"
    -= Output =-
    Non-fat file: /var/folders/rj/0ky8l48554x1z5lj36trcmjs242bs2/T/ipatool20200430-69559-j7fcfc/thinned-in/arm64/Payload/Redacted.app/Frameworks/fliclib.framework/fliclib is architecture: arm64
    Exited with 0

    Debug: Command took 0 seconds
    Debug: Using: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dwarfdump
    GetUUID: cd /
    "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dwarfdump" "-u" "/var/folders/rj/0ky8l48554x1z5lj36trcmjs242bs2/T/ipatool20200430-69559-j7fcfc/thinned-in/arm64/Payload/Redacted.app/Frameworks/fliclib.framework/fliclib"
    -= Output =-
    UUID: 08149767-509F-34B7-B8A7-A29B59192A3B (arm64) /var/folders/rj/0ky8l48554x1z5lj36trcmjs242bs2/T/ipatool20200430-69559-j7fcfc/thinned-in/arm64/Payload/Redacted.app/Frameworks/fliclib.framework/fliclib
    Exited with 0

    Debug: Command took 0 seconds
    Debug: Using: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/segedit
    ExtractXAR: cd /
    "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/segedit" "/var/folders/rj/0ky8l48554x1z5lj36trcmjs242bs2/T/ipatool20200430-69559-j7fcfc/thinned-in/arm64/Payload/Redacted.app/Frameworks/fliclib.framework/fliclib" "-extract" "__LLVM" "__bundle" "/var/folders/rj/0ky8l48554x1z5lj36trcmjs242bs2/T/fliclibRXr5NM/fliclib.arm64.xar"
    -= Output =-
    Exited with 0

    Debug: Command took 0 seconds
    Debug: Bitcode bundle version: 1.0
    Debug: Setting platform to: iOS
    Debug: Using: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
    Debug: Using: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
    Clang: cd /var/folders/rj/0ky8l48554x1z5lj36trcmjs242bs2/T/tempZvkUJJ
    "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" "-cc1" "-triple" "arm64-apple-ios8.0.0" "-emit-obj" "-disable-llvm-passes" "-faligned-alloc-unavailable" "-target-sdk-version=13.4" "-target-abi" "darwinpcs" "-Os" "-x" "ir" "01" "-o" "01.o"
    -= Output =-
    Exited with 0

    Debug: Command took 0 seconds
    error: Clang: cd /var/folders/rj/0ky8l48554x1z5lj36trcmjs242bs2/T/tempZvkUJJ
    "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" "-cc1" "-triple" "arm64-apple-ios8.0.0" "-emit-obj" "-disable-llvm-passes" "-faligned-alloc-unavailable" "-target-sdk-version=13.4" "-target-abi" "darwinpcs" "-Os" "-x" "ir" "02" "-o" "02.o"
    -= Output =-
    error: Unknown attribute kind (60) (Producer: 'APPLE_1_1103.0.32.29_0' Reader: 'LLVM APPLE_1_1100.0.33.17_0')
    1 error generated.
    Exited with 1

    error: Failed to compile bundle: /var/folders/rj/0ky8l48554x1z5lj36trcmjs242bs2/T/fliclibRXr5NM/fliclib.arm64.xar

    error: Clang: cd /var/folders/rj/0ky8l48554x1z5lj36trcmjs242bs2/T/tempZvkUJJ
    "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" "-cc1" "-triple" "arm64-apple-ios8.0.0" "-emit-obj" "-disable-llvm-passes" "-faligned-alloc-unavailable" "-target-sdk-version=13.4" "-target-abi" "darwinpcs" "-Os" "-x" "ir" "08" "-o" "08.o"
    -= Output =-
    error: error reading '08'
    1 error generated.
    Exited with 1

    error: Failed to compile bundle: /var/folders/rj/0ky8l48554x1z5lj36trcmjs242bs2/T/fliclibRXr5NM/fliclib.arm64.xar
AntonMeier commented 4 years ago

I can't say for sure. I'm looking at it. But it appears to be a compiler incompatibility issue.

error: Unknown attribute kind (60) (Producer: 'APPLE_1_1103.0.32.29_0' Reader: 'LLVM APPLE_1_1100.0.33.17_0')

Looking at the Clang versions for Xcode the versions appear to be accurate:

Xcode 11.4 Xcode: Build version 11E146 clang: Apple clang version 11.0.3 (clang-1103.0.32.29)

Xcode 11.3.1 Xcode: Build version 11C504 clang: Apple clang version 11.0.0 (clang-1100.0.33.17)

But I still find it strange. I have not seen this particular thing before. But also, you are building for SDK 13.2 but in the Clang command it sets "-target-sdk-version=13.4".

Do you think you could try the latest xcode version? It wolud be good to know for sure if that is the issue.

kmcginnes commented 4 years ago

@AntonMeier Thanks for the quick response. We plan to try the newer Xcode version later today. We tried one attempt and ran into a seg fault, but couldn’t debug at the moment. We have a potential solution to the seg fault we will try later, so it’s likely nothing to do with fliclib.

kmcginnes commented 4 years ago

We were able to archive manually using Xcode 11.4.1. We are still waiting for IT to update the Xcode on the build server.

Once that happens and is successful, then my problem is gone.

But there might still be a need to at least document the minimum requirements for using the new version of the fliclib. If Xcode 11.4.1 is truly required that should be listed.