MacAssistant icon indicating copy to clipboard operation
MacAssistant copied to clipboard

Fix Build fail with Xcode 11.3

Open hb2708 opened this issue 4 years ago • 8 comments

This fixes #82

Open in Xcode 11.3 and pod update AudioKit which updates to 4.9.3 Which has a fix for Module compiled with Swift 5.0.1 cannot be imported by the Swift 5.1.3 compiler Refer https://github.com/AudioKit/AudioKit/issues/1940 for fix

hb2708 avatar Jan 16 '20 13:01 hb2708

@vanshg I have to comment the xcodeVersion in the yml

Coz was facing error with the version and was not able to set directly to xcodeVersion: '11.2.1' so using xcodeDeveloperDir: '/Applications/Xcode_11.2.1.app/Contents/Developer'

Never used the azure pipeline before but managed to do above by referring Pipeline macos doc and Doc for Xcode task

Please take look at changes

hb2708 avatar Jan 16 '20 15:01 hb2708

I actually have made some updates as of last month. I need to push them still. It involves switching to Swift Package Manager and moving away from the xcworkspace format, which should allow compilation. I'll get that pushed soon.

That will probably invalidate this PR

vanshg avatar Feb 14 '20 03:02 vanshg

@hb2708 Are you able to have some more success with this branch? https://github.com/vanshg/MacAssistant/tree/SwiftPM

vanshg avatar Feb 16 '20 04:02 vanshg

@vanshg Tried to run but getting some build errors

hb2708 avatar Feb 19 '20 16:02 hb2708

With what error?

vanshg avatar Feb 19 '20 17:02 vanshg

So my xcode Version is 11.3.1 (11C504)

Is in file Assistant.swift this needs to be removed that i have already removed locally. try streamCall.sendMessage(request).map(<#T##callback: (Void) -> (NewValue)##(Void) -> (NewValue)#>)

lazy var service: AssistantServiceClient = AssistantServiceClient(address: ASSISTANT_API_ENDPOINT, secure: true) Extra argument 'secure' in call coz the constructor has changes the signature.

service.metadata = try! Metadata(["authorization": "Bearer (Defaults.accessToken)"]) Use of unresolved identifier 'Metadata'

  1. try streamCall.sendMessage(request) { err in Ambiguous reference to member 'sendMessage'

  2. try streamCall.sendEnd() { Cannot convert value of type '() -> ()' to expected argument type 'EventLoopPromise<Void>?'

  3. let response = try streamCall.receive() Value of type 'AssistCall' (aka 'BidirectionalStreamingCall<Google_Assistant_Embedded_V1alpha2_AssistRequest, Google_Assistant_Embedded_V1alpha2_AssistResponse>') has no member 'receive'

hb2708 avatar Feb 19 '20 17:02 hb2708

Also need to run pod deintegrate and delete the workspace file.

Also i can not find the Package.swift file in this branch

hb2708 avatar Feb 19 '20 17:02 hb2708

Xcode 11.3 #83

guruantree avatar Nov 21 '21 06:11 guruantree