Skip to content
This repository has been archived by the owner on Dec 31, 2019. It is now read-only.

Runtime framework error on Unity 4.5.4 and Xcode 6.1 #3

Open
vsdyachkov opened this issue Nov 28, 2014 · 1 comment
Open

Runtime framework error on Unity 4.5.4 and Xcode 6.1 #3

vsdyachkov opened this issue Nov 28, 2014 · 1 comment

Comments

@vsdyachkov
Copy link

When I run sample project in Xcode (on device), I have error:

2014-11-28 13:33:31.088 ar2[939:89936] Created session: <EASession: 0x75690d0> {
  accessory:<EAAccessory: 0x2fa7270>
  protocolString:com.orbotix.robotprotocol
  inputStream:<EAInputStream: 0x7569120>
  outputStream: <EAOutputStream: 0x7569390>
}
2014-11-28 13:33:31.132 ar2[939:89938] Already in Bootloader
2014-11-28 13:34:01.942 ar2[939:89827] Succes == 1
UnloadTime: 1.555875 ms
Unloading 3 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)

Unloading 16 unused Assets to reduce memory usage. Loaded Objects now: 133.
Total: 42.518414 ms (FindLiveObjects: 0.027166 ms CreateObjectMapping: 0.033416 ms     MarkObjects: 0.295125 ms  DeleteObjects: 41.744541 ms)

2014-11-28 13:34:03.233 ar2[939:89827] -[RKDeviceMessenger    addDataStreamingObserver:selector:mask:]: unrecognized selector sent to instance 0x2fa8c60

Search by created in Unity project I found out that is called non-existent selector
addDataStreamingObserver:selector:mask:in the class RKUNBridge.m:

- (void)setDataStreamingWithSensorMask:(uint64_t)mask
{
    if (!robotOnline) return;

>>> [[RKDeviceMessenger sharedMessenger] addDataStreamingObserver:self
                                                         selector:@selector(handleDataStreaming:)
                                                             mask:mask];
}

-(void)enableControllerStreamingWithSampleRateDivisor:(uint16_t)divisor
                                         packetFrames:(uint16_t)frames
                                           sensorMask:(uint64_t)mask
 {
     if(controllerStreamingOn && !robotOnline) return;

    [RKStabilizationCommand sendCommandWithState:RKStabilizationStateOff];
    [RKBackLEDOutputCommand sendCommandWithBrightness:1.0];
    [[RKDeviceMessenger sharedMessenger] setMessageRateDivisor:divisor];
>>> [[RKDeviceMessenger sharedMessenger] addDataStreamingObserver:self
                                                          selector:@selector(handleDataStreaming:)
                                                              mask:mask];
    controllerStreamingOn = YES;

}

In RKDeviceMessenger.h there selector
- (Void) addDataStreamingObserver: (id) observer selector: (SEL) handler;

After removing the component mask:mask all selector error (as described at the beginning) still remains

[[RKDeviceMessenger sharedMessenger] setMessageRateDivisor:divisor];
also not described in RKDeviceMessenger.h file

I use RobotKit.framework from https://github.com/orbotix/Sphero-iOS-SDK
RobotBridge.framework & RobotVision.framework from Unity project

@vsdyachkov
Copy link
Author

After some experimentation, I found that created unity xcode project crash only on iOS 8. The project is created and works on iOS versions 6 and 7. Will fremvok updated to work with iOS 8?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant