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

Could not build Objective-C module 'Erik' #39

Closed
jeffreyyu0602 opened this issue Sep 25, 2018 · 6 comments
Closed

Could not build Objective-C module 'Erik' #39

jeffreyyu0602 opened this issue Sep 25, 2018 · 6 comments

Comments

@jeffreyyu0602
Copy link

jeffreyyu0602 commented Sep 25, 2018

I installed Erik using podfile and the installation is successful, but it gives me this error when I do "import Erik". Below is my podfile.

platform :ios, '12.0'

target 'MyTritonLink' do
use_frameworks!
pod 'Erik'

target 'MyTritonLinkTests' do
inherit! :search_paths
# Pods for testing
end

target 'MyTritonLinkUITests' do
inherit! :search_paths
# Pods for testing
end

end

@phimage
Copy link
Owner

phimage commented Sep 25, 2018

Xcode 10? I do not update the project yet

Please provide the error message

@jeffreyyu0602
Copy link
Author

In my swift file it simply says "Could not build Objective-C module 'Erik'" when I try to import Erik.
When I run Build (command B), a bunch of swift compile errors jump out from the source file. Following error messages appeared:

Inheritance from non-protocol, non-class type 'AnyObject'
Initializer for conditional binding must have Optional type, not 'HTMLDocument'
Errors thrown from here are not handled

@phimage
Copy link
Owner

phimage commented Sep 25, 2018 via email

@jeffreyyu0602
Copy link
Author

Ok I will try to update it to Xcode 10/swift 4.2

On Tue 25 Sep 2018 at 07:57, Jeffrey Yu @.***> wrote: In my swift file it simply says "Could not build Objective-C module 'Erik'" when I try to import Erik. When I run Build (command B), a bunch of swift compile errors jump out from the source file. Following error messages appeared: Inheritance from non-protocol, non-class type 'AnyObject' Initializer for conditional binding must have Optional type, not 'HTMLDocument' Errors thrown from here are not handled — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#39 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AIdu-L_QIw8fLcPQK-M9-C7y4euPDOtVks5uecXYgaJpZM4W3408 .

Thank you so much!

@phimage
Copy link
Owner

phimage commented Sep 25, 2018

🎉 Congrats

🚀 Erik (4.2.0) successfully published
📅 September 25th, 14:09
🌎 https://cocoapods.org/pods/Erik
👍 Tell your friends!

@phimage
Copy link
Owner

phimage commented Sep 25, 2018

Let me known if it work for you
and if it work, please close the issue

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

No branches or pull requests

2 participants