apous
apous copied to clipboard
xcrun parameters missing?
I created the following script:
#!/usr/local/bin/apous
import Foundation
import CommonMark
import LiterateSwift
print("Hello")
And the following Podfile:
platform :osx, 10.9
plugin 'cocoapods-rome'
use_frameworks!
pod 'CommonMark'
pod 'LiterateSwift'
However, when I run it, I get the following error (regardless of whether I take the hasbang approach or compile everything).
<unknown>:0: error: cannot load underlying module for CoreGraphics
<unknown>:0: note: did you forget to set an SDK using -sdk or SDKROOT?
<unknown>:0: note: use "xcrun -sdk macosx swift" to select the default OS X SDK installed with Xcode
Are you using Swift 2.0? I cannot run your example on OS X 10.11 with Swift 2.0.
Running pod install --no-integrate
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Installing CommonMark (0.0.2)
Installing LiterateSwift (0.0.1)
Installing cmark (0.21.0)
/bin/bash: (cmark.*): No such file or directory
/Users/owensd/tmp/main.swift:4:8: error: no such module CommonMark
import CommonMark
I looked at this again today after getting cmake installed.
$ apous
Running pod install --no-integrate
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Using CommonMark (0.0.2)
Using LiterateSwift (0.0.1)
Using cmark (0.21.0)
Generating Pods project
dyld: warning, LC_RPATH @executable_path/../lib in /Applications/Xcode-beta.app/Contents/Frameworks/IDEFoundation.framework/Versions/A/../../../../Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libclang.dylib being ignored in restricted program because of @executable_path
dyld: warning, LC_RPATH @executable_path/../lib in /Applications/Xcode-beta.app/Contents/Frameworks/IDEFoundation.framework/Versions/A/../../../../Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib being ignored in restricted program because of @executable_path
dyld: warning, LC_RPATH @executable_path/../Frameworks in /Applications/Xcode-Beta.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/MacOS/Xcode3Core being ignored in restricted program because of @executable_path
Sending stats
Building frameworks
Built 3 frameworks
Copying frameworks to `Rome`
Hello
Thanks! Hm, not sure why it's not working for me then... I am on the latest Xcode beta. I'll have a look at it later this week, with the new beta. Thanks a lot!