Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NativeMarkText doesn't build on armv7 [#3] #4

Merged
merged 2 commits into from
Jan 6, 2021

Conversation

andyfinnell
Copy link
Owner

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.

# 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.
@andyfinnell andyfinnell merged commit e8ef002 into master Jan 6, 2021
@andyfinnell andyfinnell deleted the bugs/swiftui-not-on-armv7-3 branch January 6, 2021 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant