Facebook Pulgin error - Unexpected build error (check simulator console for message )

I did, but will that affect the use of the Facebook plugin? Was it an error in the package?

I doubt a readme file will cause problems.

Rob

I guess my next question is, why does enterprise require this file? 

/Applications/CoronaEnterprise/Plugins/sdk-facebook/ios/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle 

The FacebookSDKResources.bundle is used when you need to override default resources or strings like for internationalization.  It is not required to use the SDK.  See: 

https://developers.facebook.com/docs/reference/ios/current/constants/FBSettings#resourceBundleName

for more information.

Rob

gotcha, Thanks

It sounds like you may have an error in your build.settings.  Without seeing your entire build.settings it will be hard to trouble shoot this.

Rob

Hi rob,

Thank you for the reply. I get the same error while trying to build corona sample facebook code which i have no made any changes to.

– Supported values for orientation:

– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

 

settings = {

 

plugins ={

– key is the name passed to Lua’s ‘require()’ This section is only required for builds > 2014.2165

[“facebook”] =

{

– required

publisherId = “com.coronalabs”,

supportedPlatforms = { iphone = true, [“iphone-sim”] = true },

},

},

 

orientation = {

default = “landscapeRight”,

supported = { “landscapeRight”, }

},

 

iphone = {

plist = {

UIStatusBarHidden = true,

UIPrerenderedIcon = true, – set to false for “shine” overlay

–UIApplicationExitsOnSuspend = true, – uncomment to quit app on suspend

 

            --[[

            – iOS app URL schemes:

            CFBundleURLTypes =

            {

                {

                    CFBundleURLSchemes =

                    {

                        “fbXXXXXXXXXXXXXX”, – example scheme for facebook

                        “coronasdkapp”, – example second scheme

                    }

                }

            }

            --]]

}

},

 

–[[

– Android permissions

 

androidPermissions = {

  “android.permission.INTERNET”,

  },

 

]]–

}

 

This is my build , please help. I think it might be a bug.

 

Thanks,

Max

I am having an issue with this build as well. Works fine with 2014.2188

error: /Users/gns/Documents/MobileDevelopment/CoronaEnterpriseProjects/ActiveProjects/VinnyEnterprise_CoronaAppTemplate/App/ios/CoronaEnterprise/Plugins/sdk-facebook/ios/FacebookSDK.framework/Resources/FacebookSDKResources.bundle: No such file or directory

@projects1, I just downloaded 2419 and tried to build an unedited Facebook sample from /Applications/CoronaSDK/SampleCode/Networking/Facebook and it built without any errors.

I’m concerned about the issue where you can’t open the console.  Are you launching the “Corona Simulator” app or are you launching the “Corona Terminal” app?  You should be using “Corona Terminal” as this will start up a terminal window that then starts up the simulator and all messages get dumped into that terminal window. 

Usually plugin related build problems come from a poor network connection, either going through a proxy or similar setup, etc.  I think we need to see what other messages are showing up in the terminal windows to know more.

@guy.stockwell, you are using a build that predates a public build two generations old.  The latest public build is 2393a (for Macs, 2393 for Windows) and the latest daily build is up to 2419.  I would suggest you at least install the 2393 build of Corona Enterprise and try that.  (2393a is changes to our build server scripts to address Apple Xcode required changes in provisioning profiles and since you’re building with Xcode yourself, the “'a” part shouldn’t be important)

Rob

Rob,

I am using 2419. My reference to 2188 was that I do not have an issue when building under that old version.

Also, building on mac with this build.settings file

– Supported values for orientation:

– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

settings = {

    

    orientation = {

        default = “portrait”,

        supported = { “portrait”,“portraitUpsideDown” }

    },

    

    plugins =

    {

        [“facebook”] =

        {

            publisherId = “com.coronalabs”,

            supportedPlatforms = { iphone=true, [“iphone-sim”]=true },

        },

    },

    iphone = {

        plist = {

            UIStatusBarHidden = false,

            UIPrerenderedIcon = true, – set to false for “shine” overlay

            UIApplicationExitsOnSuspend = true,

            

            FacebookAppID = “XXXXXXXXXX”,  --replace XXXXXXXXXX with your Facebook App ID

            CFBundleURLTypes = {

                {

                CFBundleURLSchemes = { “fbXXXXXXXXXX”, }  --replace XXXXXXXXXX with your Facebook App ID

                }

            }

            

        }

    },

    

    

    android = – see developer.android.com/reference/android/Manifest.permission.html for all values

    {

        permissions =

        {

            { name = “.permission.C2D_MESSAGE”, protectionLevel = “signature” },

        },

        usesPermissions = 

        {

            “android.permission.INTERNET”,

            “android.permission.GET_ACCOUNTS”,

            “android.permission.RECEIVE_BOOT_COMPLETED”,

            “com.google.android.c2dm.permission.RECEIVE”,

            “android.permission.C2D_MESSAGE”,

            “android.permission.ACCESS_NETWORK_STATE”,

            “android.permission.ACCESS_WIFI_STATE”,

            “android.permission.ACCESS_FINE_LOCATION”,

            “android.permission.ACCESS_COARSE_LOCATION”,

            “android.permission.WRITE_EXTERNAL_STORAGE”,

            “android.permission.CALL_PHONE”,

            “android.permission.CALL_PRIVILEGED”,

            “android.permission.PROCESS_OUTGOING_CALLS”,

            “android.permission.READ_PHONE_STATE”,

            

        }

    }

}

Please post everything you’re seeing in the console here so we can view the error messages first hand. Looks like people are posting different errors here.

Corona version: 2014:2419, xcode version: 5.1.1

 

CpResource CoronaEnterprise/Plugins/sdk-facebook/ios/FacebookSDK.framework/Resources/FacebookSDKResources.bundle /Users/gns/Library/Developer/Xcode/DerivedData/VinnyAuto-aflcznvpbycilwbzcesrzxfsykxa/Build/Products/Debug-iphonesimulator/VinnyAuto.app/FacebookSDKResources.bundle

    cd /Users/gns/Documents/MobileDevelopment/CoronaEnterpriseProjects/ActiveProjects/VinnyEnterprise_CoronaAppTemplate/App/ios

    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"

    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/gns/Documents/MobileDevelopment/CoronaEnterpriseProjects/ActiveProjects/VinnyEnterprise_CoronaAppTemplate/App/ios/CoronaEnterprise/Plugins/sdk-facebook/ios/FacebookSDK.framework/Resources/FacebookSDKResources.bundle /Users/gns/Library/Developer/Xcode/DerivedData/VinnyAuto-aflcznvpbycilwbzcesrzxfsykxa/Build/Products/Debug-iphonesimulator/VinnyAuto.app

 

error: /Users/gns/Documents/MobileDevelopment/CoronaEnterpriseProjects/ActiveProjects/VinnyEnterprise_CoronaAppTemplate/App/ios/CoronaEnterprise/Plugins/sdk-facebook/ios/FacebookSDK.framework/Resources/FacebookSDKResources.bundle: No such file or directory

These are the only files in the target “Resources” folder…

file:///Applications/CoronaEnterprise/Plugins/sdk-facebook/ios/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle.README

file:///Applications/CoronaEnterprise/Plugins/sdk-facebook/ios/FacebookSDK.framework/Versions/A/Resources/FBUserSettingsViewResources.bundle/

file:///Applications/CoronaEnterprise/Plugins/sdk-facebook/ios/FacebookSDK.framework/Versions/A/Resources/Info.plist

I renamed the target file, removing the “README” extension and it complied fine. Is there a missing file or was tho named incorrectly?

@Guy, are you building with Enterprise or Corona Simulator? Why do you have a file with a Readme extension and where is it in your project?

Can you build the Facebook sample app?

Enterprise, and the file with the “README” extension was in the Corona Enterprise folder of build 2419 and not my project. 

Applications/CoronaEnterprise/Plugins/sdk-facebook/ios/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle.README

Xcode is generating the compile error when I attempt to compile my project with this version of Enterprise. The FacebookSDKResources.bundle.README file resides in the Corona Enterprise download package and not my project…

The resources shortcut points to…

/Applications/CoronaEnterprise/Plugins/sdk-facebook/ios/FacebookSDK.framework/Versions/A/Resources/FacebookSDKResources.bundle.README

2014-09-01 10:43:44.134 Corona Simulator[1132:507] Connection error: (corona.update2) fault(Token has expired.)
2014-09-01 10:43:44.135 Corona Simulator[1132:507] Connection error: (corona.update2) ({
“/FaultCode” = 1;
“/FaultString” = “Token has expired.”;
“/WSDebugInHeaders” = {
“Access-Control-Allow-Origin” = “corona.amplitude.com <http://corona.amplitude.com>”;
“Cache-Control” = “store, no-cache, must-revalidate, post-check=0, pre-check=0”;
Connection = close;
“Content-Length” = 331;
“Content-Type” = “text/xml”;
Date = “Mon, 01 Sep 2014 05:19:39 GMT”;
Expires = “Sun, 19 Nov 1978 05:00:00 GMT”;
“Last-Modified” = “Mon, 01 Sep 2014 05:19:39 GMT”;
Origin = “developer.coronalabs.com <http://developer.coronalabs.com>”;
Server = Apache;
“Set-Cookie” = “SESSc07c0747ea4ab0aa4ebc3d8416d3de7a=00881d508cc077fedf4be86ae7423bf0; path=/; domain=.coronalabs.com<http://coronalabs.com>, CHOCOLATECHIP=deleted; expires=Sun, 01-Sep-2013 05:19:38 GMT; path=/, CHOCOLATECHIP=deleted; expires=Sun, 01-Sep-2013 05:19:38 GMT; path=/; domain=.coronalabs.com <http://coronalabs.com>”;
};
“/kWSHTTPResponseMessage” = “<CFHTTPMessageRef 0x7fe4cb6183d0(0x7fe4cb6183e0)> { parsed response, url =http://developer.coronalabs.com/services/xmlrpc, status = 200 }”;
“/kWSResultIsFault” = 1;
})
2014-09-01 10:43:44.135 Corona Simulator[1132:507] WebServicesSession: network problem: Token has expired.
2014-09-01 10:43:44.135 Corona Simulator[1132:507] WebServicesSession: network problem: Token has expired.
2014-09-01 10:43:44.248 Corona Simulator[1132:507] xcode-select is set to an invalid location: /Volumes/Xcode/Xcode.app/Contents/Developer
2014-09-01 10:43:44.942 Corona Simulator[1132:507] WARNING: Could not find certificate for identity (iPhone Developer: Baltazar Rodriguez (69DLGMP5NY)) whose user id is: VS8UGD272N
(/Users/sudeepnair/Library/MobileDevice/Provisioning Profiles/97169A35-5EA9-4ABC-AABC-51A51B7D9444.mobileprovision)
2014-09-01 10:43:49.634 Corona Simulator[1132:507] Using Custom Build Id 00000
2014-09-01 10:44:16.416 Corona Simulator[1132:507] xcode-select is set to an invalid location: /Volumes/Xcode/Xcode.app/Contents/Developer
Using additional build settings from: /Applications/santa/max_corona/fast_and_powerfull/build.settings
WARNING: Your SDK may be out of date b/c the following SDK directory could not be found:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk
WARNING: Using the following SDK instead: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk
WARNING: Your SDK may be out of date b/c the following SDK directory could not be found:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk
WARNING: Using the following SDK instead: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
2014-09-01 10:44:16.771 Corona Simulator[1132:507] Runtime error
/Applications/santa/max_corona/fast_and_powerfull.app/.build/libtemplate/Builder.lua:310: <error>{“status”:32512,“message”:“sh: /Volumes/Xcode/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++: No such file or directory”}</error>
stack traceback:
[C]: ?
[C]: in function ‘assert’
/Applications/santa/max_corona/fast_and_powerfull.app/.build/libtemplate/Builder.lua:310: in function ‘checkError’
/Applications/santa/max_corona/fast_and_powerfull.app/.build/libtemplate/Builder.lua:333: in function ‘build’
?: in function ‘buildExe’
?: in function <?:636>

Hi,

I finally got the console to work and this is the error i get when i try to build , Hope you could help me with this 

id like to add that i am using xcode 5.1.1

Thanks 

max

Hi, 

I am using graphicsCompatibility = 1 in my config settings.  I don’t know if this might be a relevant information regarding to this particular issue. 

Thanks ,

Max