norio-nomura / base32 Goto Github PK
View Code? Open in Web Editor NEWBase32 for Swift
License: MIT License
Base32 for Swift
License: MIT License
I add the flow code to Base32Tests.swift
func testBase32Decode() {
self.measure{
let b32 = "AY22KLPRBYJXNH6TRM4I3LPBYA======"
for _ in 0...100 {
_ = b32.base32DecodedData
}
}
}
Run testBase32Decode can reproduce the error
Any chances of supporting it on CocoaPods too?
Build warnings in Base32.swift
Initialization of UnsafePointer<UInt8> results in dangling pointer
Initialization of UnsafeMutablePointer<UInt8> results in dangling pointer
'deallocate(capacity:)' is deprecated: Swift currently only supports freeing entire heap blocks, use deallocate() instead
Base32.swift Line 227 and 230
This applies for Swift 4, Xcode 9.3
Hi,
when doing a carthage update on base32, I get some errors, see below. It seems to be related, that Xcode 12 only supports iOS 9 upwards as deplyoment target. How to fix this?
*** Building scheme "Base32" in Base32.xcodeproj
Build Failed
Task failed with exit code 1:
/usr/bin/xcrun lipo -create /Users/xxx/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/Base32/0.8.0/Build/Intermediates.noindex/ArchiveIntermediates/Base32/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Base32.framework/Base32 /Users/xxx/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/Base32/0.8.0/Build/Products/Release-iphonesimulator/Base32.framework/Base32 -output /Users/xx/D/Carthage/Build/iOS/Base32.framework/Base32
2020-10-05 16:26:13.235 xcodebuild[43889:6527489] [MT] iPhoneConnect: <9F><93><DVTiOSDevice (0x7fe72a6c4c40), xxxx, iPad, 14.0.1 (18A393), 4fd85e41fa4f1f31a891c04c8e0375eb
177cd793> == END: Underlying device preparation errors ==
note: Constructing build description
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'Base32' from projec
t 'Base32')
CreateBuildDirectory /Users/xxx/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/Base32/0.8.0/Build/Intermediates.noindex/ArchiveIntermediates/Base32/InstallationBuil
dProductsLocation (in target 'Base32' from project 'Base32')
cd /Users/xx/Documents/WORK/D/Carthage/Checkouts/Base32
builtin-create-build-directory /Users/xx/Library/Caches/org.carthage.CarthageKit/DerivedData/12.0.1_12A7300/Base32/0.8.0/Build/Intermediates.noindex/ArchiveIntermediates/Base32/In
stallationBuildProductsLocation
I keep getting this error when trying to build via Carthage:
Failed to discover shared schemes in project Base32.xcodeproj—either the project does not have any shared schemes, or xcodebuild never returned
Any thoughts?
Base16.swift and Base32.swift: warning: 'withUnsafeBytes' is deprecated: use 'withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R' instead
StringExtension.swift: 'init(bytes:)' is deprecated: use 'init(_:)' instead
As per the instructions, in your README.md
file, the package gets added successfully into the project, but during building phase, it says:
Module file was created by an older version of the compiler; rebuild 'Base32' and try again
I am using XCode 7.2 currently!
Can you please update the library so that, a version build with recent compiler is fetched by Carthage.
Uploading app with Base32 to iTunes Connect fails because of missing CFBundleVersion
.
Base32 was included via Carthage and build with Xcode 8.3.3.
I see there is a ${CURRENT_PROJECT_VERSION}
in there but at least when building with Carthage and Xcode 8.3.3 that is empty and so CFBundleVersion
is empty. I fixed this for our app by forking Base32 and setting CFBundleVersion
to 1.0
, but that's probably more a quick and dirty solution.
But otherwise the bundle version of a framework doesn't seem to be important as it is always deployed inside an app and iOS uses the bundle version of the app to decide whether it's a new version or not.
Extensions are not visible due to default internal access despite extension functions being public.
Next weekend I have time to make a pull request. If someone has time before that don't hesitate to make a pull request before me.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.