SwiftScripting
SwiftScripting copied to clipboard
imports missing
This is not a huge deal, but please note that _ sbhc.py_ is omitting to start the resulting file with necessary import lines. For example, I did
sdef /Applications/iTunes.app > iTunes.sdef
sdp -fh --basename iTunes iTunes.sdef
sbhc.py iTunes.h
sbsc.py iTunes.sdef
and imported those into my project, and the project didn't compile. I was able to fix that by adding
import Foundation
import ScriptingBridge
at the top of iTunes.swift. But it seems to me that the Python script should have done that for me.
@mattneub
This issue is solved by https://github.com/tingraldi/SwiftScripting/pull/22
The problem was a good hint to the root cause of a bigger issue: poor cmake couldn't find the proper header files but didn't bother to tell us about it :-/