Here’s my code I’m now getting an error which states: '0 attempt to call nill value in function require main.lua 9
local pasteboard = require( “plugin.pasteboard” )
txtstring = “Test text string”
pasteboard.copy(“string”,txtstring)
Here are my build settings:
–
– For more information on build.settings, see the Project Build Settings guide at:
– https://docs.coronalabs.com/guide/distribution/buildSettings
–
settings =
{
orientation =
{
– Supported values for orientation:
– portrait, portraitUpsideDown, landscapeLeft, landscapeRight
default = “portrait”,
supported = { “portrait”, },
},
–
– Android section
–
android =
{
usesPermissions =
{
“android.permission.INTERNET”,
},
},
settings =
{
plugins =
{
[“plugin.pasteboard”] =
{
publisherId = “com.coronalabs”,
},
},
}
–
– iOS section
–
iphone =
{
xcassets = “Images.xcassets”,
plist =
{
UIStatusBarHidden = false,
UILaunchStoryboardName = “LaunchScreen”,
},
},
–
– Plugins section
–
plugins =
{
},
–
– Project section
–
excludeFiles =
{
– Exclude unnecessary files for each platform
all = { “Icon.png”, “Icon-*dpi.png”, “Images.xcassets”, },
android = { “LaunchScreen.storyboardc”, },
},
}