fiskaly / fiskaly-sdk-swift

fiskaly Cloud-TSE SDK for Swift/iOS
MIT License
5 stars 5 forks source link

Carthage update error #23

Closed TomoLV closed 4 years ago

TomoLV commented 4 years ago

Hi

I'm trying to integrate fiskaly-sdk-swift via Carthage. Unfortunately running carthage update command results in an error:

USER$ carthage update
*** Fetching fiskaly-sdk-swift
*** Checking out fiskaly-sdk-swift at "v1.2.000"
*** xcodebuild output can be found in {PATH}/T/carthage-xcodebuild.STJgKL.log
*** Building scheme "FiskalySDK" in FiskalySDK.xcodeproj
Build Failed
    Task failed with exit code 65:
    /usr/bin/xcrun xcodebuild -project /Users/USER/Documents/XcodeProjects/CarthageTestProject/Carthage/Checkouts/fiskaly-sdk-swift/FiskalySDK.xcodeproj -scheme FiskalySDK -configuration Release -derivedDataPath /Users/USER/Library/Caches/org.carthage.CarthageKit/DerivedData/11.4.1_11E503a/fiskaly-sdk-swift/v1.2.000 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath {PATH}/T/fiskaly-sdk-swift SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/USER/Documents/XcodeProjects/CarthageTestProject/Carthage/Checkouts/fiskaly-sdk-swift)

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: {PATH}/T/carthage-xcodebuild.STJgKL.log

Examining carthage-xcodebuild.STJgKL.log I found those 2 entries:

The following build commands failed:
    Ld /Users/USER/Library/Caches/org.carthage.CarthageKit/DerivedData/11.4.1_11E503a/fiskaly-sdk-swift/v1.2.000/Build/Intermediates.noindex/ArchiveIntermediates/FiskalySDK/IntermediateBuildFilesPath/FiskalySDK.build/Release-iphoneos/FiskalySDK.build/Objects-normal/arm64/Binary/FiskalySDK normal arm64
    Ld /Users/USER/Library/Caches/org.carthage.CarthageKit/DerivedData/11.4.1_11E503a/fiskaly-sdk-swift/v1.2.000/Build/Intermediates.noindex/ArchiveIntermediates/FiskalySDK/IntermediateBuildFilesPath/FiskalySDK.build/Release-iphoneos/FiskalySDK.build/Objects-normal/armv7/Binary/FiskalySDK normal armv7
(2 failures)

I'm using Xcode 11.4.1 (and 11.4.1 Command Line Tools) and 1.2.000 version of fiskaly SDK.

prempador commented 4 years ago

Hello @TomoLV, Thanks for your report, we are aware of this issue. This is caused by a new build flag added with 1.2.000 to support armv7 again.

We are working on a fix for this issue. Sorry for the inconvenience.

prempador commented 4 years ago

I have removed the linker-flags and armv7 Archs on master for now until we have a fix for armv7. I just tested on an empty repository and the build command now works for amd64.

I will leave this ticket open for now so I can write updates on the progress for armv7.

psycrtb commented 4 years ago

Hello guys. Is there any eta on an update to fix this issue? Thanks