YITechnology / YIOpenAPI

YI Open API provides mobile SDKs and reference designs for software developers and hardware makers to build cool apps and products with YI 4K Action Cameras
Other
347 stars 77 forks source link

Can't build on iOS (Yi360Demo) #10

Closed marcos10soares closed 7 years ago

marcos10soares commented 8 years ago

When trying to build Yi360Demo for iOS it gives the following errors:

'ActionCameraListener' is unavailable: cannot find Swift declaration for this class 'Error' is unavailable: cannot find Swift declaration for this class 'Super' is unavailable: cannot find Swift declaration for this class

Method does not override any method from its superclass Camera.swift (regarding override func onConnected)

Tried with Xcode: 8.1 8.0 7.3.1

iOS - 9.3.4

Thanks

marcos10soares commented 8 years ago

I deleted the frameworks (CocoaASyncSocket, YiCamerasSDK, SwiftyJSON) and dragged them again to the project and now was able to build.

But when running I only get a blank app screen and a fatal error, the console prints: dyld: Library not loaded: @rpath/CocoaAsyncSocket.framework/CocoaAsyncSocket Referenced from: /var/containers/Bundle/Application/56BA9053-9FAD-4987-A290-1430C365AAFE/YI360Demo.app/YI360Demo Reason: image not found (lldb)

x-projs commented 8 years ago

You need add CocoAsyncSocket.framework to your library search path.

marcos10soares commented 8 years ago

@xieyubo thank you, but I added "$(SRCROOT)/YI360Demo" to the library search path and still have the blank screen and "lldb" on the console.

(i copied the frameworks to the YI360Demo, but also tried with the path to the framework/phoneos and thirdparty/phoneos folders)

dyld`dyld_fatal_error: -> 0x120059088 <+0>: brk #0x3

JaviLorbada commented 7 years ago

@marcos10soares I got it working with the following search path in the build settings of the project

screenshot 2017-02-03 15 45 05

I hope with that works :)