Rob,
I am using 2419. My reference to 2188 was that I do not have an issue when building under that old version.
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
Your Xcode installation is not right so Corona can’t build and sign the app. There may be a conflict if you recently updated Xcode or moved it from it’s default location. You may need to remove and reinstall Xcode.
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/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++: No such file or directory"}</error>
Run this command in the terminal to show where it thinks Xcode is located:
xcode-select -print-path
Hi Tom,
Thanks for the reply, I updated my OS and Xcode to the latest version and Its building fine. But when I use
local facebook = require( “facebook” )
in the main it works fine in the simulator but when i build and run on the device the page becomes blank
I removed it and it works. please help
Thanks ,
Max
Corona Staff
Still looking for an answer to my build issue.
Thanks
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