Git Product home page Git Product logo

Comments (4)

datacosmos avatar datacosmos commented on May 25, 2024 1

Thanks! Although there is still a problem with the carthage build with Xcode 12: the build fails on lipo due to duplicate architectures:

Release-iphonesimulator/Base32.framework/Base32 have the same architectures (arm64) and can't be in the same fat output file

See also: here
However with the following workaround from the issue above, I was able to build Version 0.9.0:

#!/usr/bin/env bash
# carthage.sh
# Usage example: ./carthage.sh build --platform iOS

set -euo pipefail

xcconfig=$(mktemp /tmp/static.xcconfig.XXXXXX)
trap 'rm -f "$xcconfig"' INT TERM HUP EXIT

# For Xcode 12 make sure EXCLUDED_ARCHS is set to arm architectures otherwise
# the build will fail on lipo due to duplicate architectures.
echo 'EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200 = arm64 arm64e armv7 armv7s armv6 armv8' >> $xcconfig
echo 'EXCLUDED_ARCHS = $(inherited) $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT)__XCODE_$(XCODE_VERSION_MAJOR))' >> $xcconfig

export XCODE_XCCONFIG_FILE="$xcconfig"
carthage "$@"

I am not sure if the problem is on carthage or framework side....

from base32.

datacosmos avatar datacosmos commented on May 25, 2024

I have seen that this is fixed on trunk - however carthage always fetches version 0.8.0 but after using

github "norio-nomura/Base32" "master"

in the Cartfile it fetches the master code and compiles - but it would be nice if you could release a new version - so the default Cartfile entry will work with new xcode/swift versions

from base32.

norio-nomura avatar norio-nomura commented on May 25, 2024

Thanks for reporting.
I have released 0.9.0.

$ (master) pod trunk push

[!] Found podspec `SwiftBase32.podspec`
Updating spec repo `trunk`
Validating podspec
 -> SwiftBase32 (0.9.0)
    - NOTE  | xcodebuild:  note: Using new build system
    - NOTE  | xcodebuild:  note: Building targets in parallel
    - NOTE  | xcodebuild:  note: Using codesigning identity override: -
    - NOTE  | xcodebuild:  note: Planning build
    - NOTE  | xcodebuild:  note: Constructing build description
    - NOTE  | xcodebuild:  warning: Skipping code signing because the target does not have an Info.plist file and one is not being generated automatically. (in target 'App' from project 'App')
    - NOTE  | xcodebuild:  note: Using codesigning identity override: 

Updating spec repo `trunk`

--------------------------------------------------------------------------------
 🎉  Congrats

 🚀  SwiftBase32 (0.9.0) successfully published
 📅  October 8th, 08:43
 🌎  https://cocoapods.org/pods/SwiftBase32
 👍  Tell your friends!
--------------------------------------------------------------------------------

from base32.

norio-nomura avatar norio-nomura commented on May 25, 2024

I think carthage should support xcframework creation.

from base32.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.