Skip to content

Commit

Permalink
NativeMarkText doesn't build on armv7 [#3] (#4)
Browse files Browse the repository at this point in the history
* NativeMarkText doesn't build on armv7 [#3]

# Problem

As reported in #3, the NativeMarkText+UIKit doesn't build for device. Investigation showed that was because the enclosing projects were trying to build armv7 and SwiftUI doesn't include an armv7 binary. Therefore, it appeared like SwiftUI wasn't defined and compiling the file failed with undefined symbols.

# Solution

As a workaround, only build the NativeMarkText+UIKit.swift file for armv64 and x86_64. It is a bit fragile in that if new architectures appear, they'll have to be manually added.

* Updating unrelated snapshot tests that changed when Github CI updated OS version
  • Loading branch information
andyfinnell authored Jan 6, 2021
1 parent c86db98 commit e8ef002
Show file tree
Hide file tree
Showing 27 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/NativeMarkKit/render/NativeMarkText+UIKit.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Foundation
#if canImport(UIKit) && canImport(SwiftUI)
#if canImport(UIKit) && canImport(SwiftUI) && (arch(arm64) || arch(x86_64))
import UIKit
import SwiftUI

Expand Down
Binary file modified Tests/NativeMarkKitTests/Fixtures/BlockQuotes.tvOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Tests/NativeMarkKitTests/Fixtures/Codes.tvOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Tests/NativeMarkKitTests/Fixtures/Draw_BasicDocNoWrapping.iOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Tests/NativeMarkKitTests/Fixtures/Draw_BasicDocNoWrapping.tvOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Tests/NativeMarkKitTests/Fixtures/Draw_BasicDocWrapping.tvOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Tests/NativeMarkKitTests/Fixtures/HeadingsAndParagraphs.iOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Tests/NativeMarkKitTests/Fixtures/HeadingsAndParagraphs.tvOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Tests/NativeMarkKitTests/Fixtures/HorizontalRules.tvOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Tests/NativeMarkKitTests/Fixtures/ImagesAndLinks.iOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Tests/NativeMarkKitTests/Fixtures/ImagesAndLinks.tvOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Tests/NativeMarkKitTests/Fixtures/LineHeight.tvOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Tests/NativeMarkKitTests/Fixtures/LineSpacing.tvOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Tests/NativeMarkKitTests/Fixtures/LooseOrderedList.tvOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Tests/NativeMarkKitTests/Fixtures/OctalOrderedList.tvOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Tests/NativeMarkKitTests/Fixtures/ParagraphIndents.tvOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Tests/NativeMarkKitTests/Fixtures/Paragraphs.tvOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Tests/NativeMarkKitTests/Fixtures/RightAlignment.tvOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Tests/NativeMarkKitTests/Fixtures/TextStyles2.iOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Tests/NativeMarkKitTests/Fixtures/TextStyles2.tvOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Tests/NativeMarkKitTests/Fixtures/TightOrderedList.tvOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e8ef002

Please sign in to comment.