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

missing file? #2

Closed
adamklein opened this issue Oct 4, 2021 · 3 comments
Closed

missing file? #2

adamklein opened this issue Oct 4, 2021 · 3 comments

Comments

@adamklein
Copy link
Contributor

adamklein commented Oct 4, 2021

Trying to build via ios xcode Plugin project, getting an error that

CapacitorStockfish/CapacitorStockfish-Swift.h file not found

is this autogenerated? Cannot seem to find it.

#import <CapacitorStockfish/CapacitorStockfish-Swift.h>

Is there any guidance on how to build & test the plugin on ios? I'm new to the lichobile tech stack but hoping to get up to speed quickly!

@adamklein
Copy link
Contributor Author

adamklein commented Oct 4, 2021

Just a quick update, I also ran

npm run verify:ios

That leads to

/Users/adamklein/Developer/capacitor-stockfish/ios/Plugin/Plugin.swift:7:28: error: cannot find type 'StockfishBridge' in scope
    private var stockfish: StockfishBridge?
                           ^~~~~~~~~~~~~~~
/Users/adamklein/Developer/capacitor-stockfish/ios/Plugin/Plugin.swift:48:22: error: cannot find 'StockfishBridge' in scope
            "value": StockfishBridge.getCPUType() ?? "unknown"
                     ^~~~~~~~~~~~~~~
/Users/adamklein/Developer/capacitor-stockfish/ios/Plugin/Plugin.swift:62:25: error: cannot find 'StockfishBridge' in scope
            stockfish = StockfishBridge(plugin: self)
                        ^~~~~~~~~~~~~~~

** BUILD FAILED **

but I think this stems from the same error - that the file cannot be imported (lexical/preprocessor error)

EDIT: Is this project perhaps meant only to be built indirectly, via the main lichobile project build process? I'm just trying to work through the moving pieces of it all now. Also, is there a better place where I might ask questions? I don't want to spam on github unnecessarily.

@veloce
Copy link
Owner

veloce commented Oct 4, 2021

Hi!
First of all, I'm by no mean an iOS expert... quite the contrary, even though I've managed to write this plugin :)

That file: CapacitorStockfish/CapacitorStockfish-Swift.h is indeed a generated one.

And for the other problem, the verify:ios (which is only on the capacitor3 branch), I actually don't use it to be honest, as I test the plugin directly in https://github.com/veloce/lichobile, importing it using the podspec.
But that would be nice to make it work, for sure (it's working on android).

@adamklein
Copy link
Contributor Author

I don’t mind trying to get it to work. is there a better development branch, or should I work from master?

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