这是我的构建环境
这是构建命令
要获取.aar文件,我必须构建Iotivity项目。 但Scons构建给我一些错误。 我不知道我是如何解决这个问题的。请回答这个问题!! 谢谢
下面显示错误
public func loginAsync(pinCode: String?, apiPath: String?) -> Promise<LoginResult>{
return Promise { fullfil, reject in
let params = [
"Pin": pinCode!
]
Alamofire.request(.POST, "\(baseUrl!)/\(apiPath!)", parameters: params).responseObject{(response: Response<LoginResult, NSError>) in
let serverResponse = response.response
if serverResponse!.statusCode != 200 {
reject(NSError(domain: "http", code: serverResponse!.statusCode, userInfo: nil))
}
if let loginResult = response.result.value {
fullfil(loginResult)
}
dispatch_group_leave(yourClass.serviceGroup)
}
}
}
答案 0 :(得分:0)
看起来像拼写错误 - 请确认。 找不到SCons命令。 也许用'scons'?
答案 1 :(得分:0)
试试吧
编辑&lt; iotivity_root&gt; / extlibs / boost / SConscript
befor
if host_os == 'linux2' :
boost_bootstrap = boost_base_name+os.sep+'bootstrap.sh'
else :
msg="Host platform (%s) is currently not supported for boost builds" % host_os
raise SCons.Errors.EnvironmentError(msg)
后
if host_os == 'linux2' :
boost_bootstrap = boost_base_name+os.sep+'bootstrap.sh'
else :
if host_os == 'darwin' :
boost_bootstrap = ''
else :
msg="Host platform (%s) is currently not supported for boost builds" % host_os
raise SCons.Errors.EnvironmentError(msg)