Closed mdmrachev23 closed 6 years ago
@mdmrachev23 thanks for filing this. I was able to reproduce your issue. Unfortunately, I don't have a good workaround for you, besides to ask whether you can update your main FourSpar target to Swift 4? There appears to be a Swift 3.2/4.0 compatibility issue that I wasn't aware of. Something related to BonMot's use of the new-in-Swift-4 NSAttributedStringKey
.
It may also be worth filing a bug to Apple, which I also may do if I have a chance.
Oh, and for purposes of reproducing, here's a reduced test case:
Add a file containing the following:
extension String {
var foo: NSAttributedString {
return self.styled()
}
}
And here are the salient bits from the log:
StringThing.zip Here's a project that includes the above reproduction steps.
No way to revert or branch for 3.2?
You can point to the BonMot 4.3.1 tag if you want, but it’s missing a couple of bug fixes. I tried to support Swift 3.2 and 4.0, but but seemed impossible, unfortunately.
Ok, thanks again for your responses. I will try that if nothing else works. I’m going to give it a break for today. I’m about to go out for the evening…thank you
On Nov 4, 2017, at 6:10 PM, Zev Eisenberg notifications@github.com wrote:
You can point to the BonMot 4.3.1 tag if you want, but it’s missing a couple of bug fixes. I tried to support Swift 3.2 and 4.0, but but seemed impossible, unfortunately.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Raizlabs/BonMot/issues/307#issuecomment-341936601, or mute the thread https://github.com/notifications/unsubscribe-auth/AA-ZHgWIM4qB_1fYgRyVpf9vQblkmMusks5szO7-gaJpZM4QFgJM.
@ZevEisenberg You should edit the description of the github release for 5.0. Right now it's misleading regarding the compatibility with swift 3.2 and cocoapods 1.4.
@lukaspili good call. And just to confirm, it works in a Swift 3.2 project, right? But then breaks if you add that extension?
I'm going to close this, since I believe the issue was with 3.2/4.0 compatibility. Feel free to open a new issue if you're having compilation problems!
sorry, i should have closed it
On Fri, Apr 20, 2018 at 11:35 AM, Zev Eisenberg notifications@github.com wrote:
I'm going to close this, since I believe the issue was with 3.2/4.0 compatibility. Feel free to open a new issue if you're having compilation problems!
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Raizlabs/BonMot/issues/307#issuecomment-383152548, or mute the thread https://github.com/notifications/unsubscribe-auth/AA-ZHqH8qxvr9dnzUnK0BMaYjnNDHR9jks5tqg5ggaJpZM4QFgJM .
Hello, I use you library in my project and after updating Xcode I have next error: String+AttributedString.swift.zip
Showing Recent Messages CompileSwift normal x86_64 /Users/user/Documents/work/4spar/FourSpar/Sources/Extensions/String+AttributedString.swift cd /Users/user/Documents/work/4spar/FourSpar /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c -filelist /var/folders/tg/p8d1jmc9691501v8v1qyq11h0000gn/T/sources-5c964b -primary-file /Users/user/Documents/work/4spar/FourSpar/Sources/Extensions/String+AttributedString.swift -target x86_64-apple-ios10.0 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk -I /Users/user/Library/Developer/Xcode/DerivedData/FourSpar-gbgsoqzalebxhxabmcpopxkzvoeh/Build/Intermediates.noindex/SwiftMigration/FourSpar/Products/Debug-iphonesimulator -F /Users/user/Library/Developer/Xcode/DerivedData/FourSpar-gbgsoqzalebxhxabmcpopxkzvoeh/Build/Intermediates.noindex/SwiftMigration/FourSpar/Products/Debug-iphonesimulator -F /Users/user/Documents/work/4spar/FourSpar/../Carthage/Build/iOS -F /Users/user/Documents/work/4spar/FourSpar/Fabric -enable-testing -g -module-cache-path /Users/user/Library/Developer/Xcode/DerivedData/ModuleCache -warnings-as-errors -swift-version 3 -enforce-exclusivity=checked -D DEBUG -serialize-debugging-options -Xcc -I/Users/user/Library/Developer/Xcode/DerivedData/FourSpar-gbgsoqzalebxhxabmcpopxkzvoeh/Build/Intermediates.noindex/SwiftMigration/FourSpar/Intermediates.noindex/FourSpar.build/Debug-iphonesimulator/FourSpar.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/user/Library/Developer/Xcode/DerivedData/FourSpar-gbgsoqzalebxhxabmcpopxkzvoeh/Build/Intermediates.noindex/SwiftMigration/FourSpar/Intermediates.noindex/FourSpar.build/Debug-iphonesimulator/FourSpar.build/FourSpar-generated-files.hmap -Xcc -I/Users/user/Library/Developer/Xcode/DerivedData/FourSpar-gbgsoqzalebxhxabmcpopxkzvoeh/Build/Intermediates.noindex/SwiftMigration/FourSpar/Intermediates.noindex/FourSpar.build/Debug-iphonesimulator/FourSpar.build/FourSpar-own-target-headers.hmap -Xcc -I/Users/user/Library/Developer/Xcode/DerivedData/FourSpar-gbgsoqzalebxhxabmcpopxkzvoeh/Build/Intermediates.noindex/SwiftMigration/FourSpar/Intermediates.noindex/FourSpar.build/Debug-iphonesimulator/FourSpar.build/FourSpar-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/user/Library/Developer/Xcode/DerivedData/FourSpar-gbgsoqzalebxhxabmcpopxkzvoeh/Build/Intermediates.noindex/SwiftMigration/FourSpar/Intermediates.noindex/FourSpar.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/user/Library/Developer/Xcode/DerivedData/FourSpar-gbgsoqzalebxhxabmcpopxkzvoeh/Build/Intermediates.noindex/SwiftMigration/FourSpar/Intermediates.noindex/FourSpar.build/Debug-iphonesimulator/FourSpar.build/FourSpar-project-headers.hmap -Xcc -I/Users/user/Library/Developer/Xcode/DerivedData/FourSpar-gbgsoqzalebxhxabmcpopxkzvoeh/Build/Intermediates.noindex/SwiftMigration/FourSpar/Products/Debug-iphonesimulator/include -Xcc -I/Users/user/Library/Developer/Xcode/DerivedData/FourSpar-gbgsoqzalebxhxabmcpopxkzvoeh/Build/Intermediates.noindex/SwiftMigration/FourSpar/Intermediates.noindex/FourSpar.build/Debug-iphonesimulator/FourSpar.build/DerivedSources/x86_64 -Xcc -I/Users/user/Library/Developer/Xcode/DerivedData/FourSpar-gbgsoqzalebxhxabmcpopxkzvoeh/Build/Intermediates.noindex/SwiftMigration/FourSpar/Intermediates.noindex/FourSpar.build/Debug-iphonesimulator/FourSpar.build/DerivedSources -Xcc -DDEBUG=1 -Xcc -working-directory/Users/user/Documents/work/4spar/FourSpar -emit-module-doc-path /Users/user/Library/Developer/Xcode/DerivedData/FourSpar-gbgsoqzalebxhxabmcpopxkzvoeh/Build/Intermediates.noindex/SwiftMigration/FourSpar/Intermediates.noindex/FourSpar.build/Debug-iphonesimulator/FourSpar.build/Objects-normal/x86_64/String+AttributedString~partial.swiftdoc -serialize-diagnostics-path /Users/user/Library/Developer/Xcode/DerivedData/FourSpar-gbgsoqzalebxhxabmcpopxkzvoeh/Build/Intermediates.noindex/SwiftMigration/FourSpar/Intermediates.noindex/FourSpar.build/Debug-iphonesimulator/FourSpar.build/Objects-normal/x86_64/String+AttributedString.dia -Onone -module-name FourSpar -emit-module-path /Users/user/Library/Developer/Xcode/DerivedData/FourSpar-gbgsoqzalebxhxabmcpopxkzvoeh/Build/Intermediates.noindex/SwiftMigration/FourSpar/Intermediates.noindex/FourSpar.build/Debug-iphonesimulator/FourSpar.build/Objects-normal/x86_64/String+AttributedString~partial.swiftmodule -emit-dependencies-path /Users/user/Library/Developer/Xcode/DerivedData/FourSpar-gbgsoqzalebxhxabmcpopxkzvoeh/Build/Intermediates.noindex/SwiftMigration/FourSpar/Intermediates.noindex/FourSpar.build/Debug-iphonesimulator/FourSpar.build/Objects-normal/x86_64/String+AttributedString.d -emit-reference-dependencies-path /Users/user/Library/Developer/Xcode/DerivedData/FourSpar-gbgsoqzalebxhxabmcpopxkzvoeh/Build/Intermediates.noindex/SwiftMigration/FourSpar/Intermediates.noindex/FourSpar.build/Debug-iphonesimulator/FourSpar.build/Objects-normal/x86_64/String+AttributedString.swiftdeps -emit-remap-file-path /Users/user/Library/Developer/Xcode/DerivedData/FourSpar-gbgsoqzalebxhxabmcpopxkzvoeh/Build/Intermediates.noindex/SwiftMigration/FourSpar/Migration/FourSpar-swift.migrate/String+AttributedString.remap -o /Users/user/Library/Developer/Xcode/DerivedData/FourSpar-gbgsoqzalebxhxabmcpopxkzvoeh/Build/Intermediates.noindex/SwiftMigration/FourSpar/Intermediates.noindex/FourSpar.build/Debug-iphonesimulator/FourSpar.build/Objects-normal/x86_64/String+AttributedString.o