Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Corona Native IOS create a plugin
Started by arthurj58 Mar 09 2019 11:50 PM

No replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

arthurj58

[GLOBAL: userInfoPane.html]
arthurj58
  • Observer

  • 9 posts
  • Corona SDK

 

I want to create a plugin 

Reference frame Flashlight 

https://docs.coronalabs.com/tutorial/native/iosIntro/index.html

It’s no luck

 

Add 

#import <CoreBluetooth/CoreBluetooth.h>

Build

....

error

/clang:-1: linker command failed with exit code 1 (use -v to see invocation)

bool
PluginLibrary::Initialize( CoronaLuaRef listener )
{
    

	// Can only initialize listener once
	bool result = ( NULL == fListener );

	if ( result )
	{
		fListener = listener;
	}


    manager = [[CBCentralManager alloc] initWithDelegate:nil queue:nil];
    
    
    return result;
}

How to use CBCentralManager

need help




[topic_controls]
[/topic_controls]