-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
phonegap build iOS failure, no such file or directory: Plugins/com.phonegap.plugins.facebookconnect/FacebookConnectPlugin.m #830
Comments
@mcacciottolo Xcode is failing to find this file: FacebookConnectPlugin.m It's possible Cordova's Plugman failed to update the plugin properly and Xcode is now in limbo. Any way you can rebuild? |
Hi, I was able to narrow it down the issue to the application name in the phonegap build config file. It seems that the Android build will succeed with any given app name however iOS will only compile successfully if the name of the app does NOT consist of special characters and MUST begins with a capitalized name. It's very strange to me that this is the case but I tested it on my application as well as a test app with just this plugin being used. Anyway, I do have iOS compiling right now however it is not with the desired name that I would like it to appear as. |
@mcacciottolo |
The desired name of the app is •gbot•, however even as gbot the iOS build fails. Only after changing it to Gbot did it finally compile. Strange right? |
@mcacciottolo |
@mcacciottolo
and successfully built without any problems. So this looks like it might be a PhoneGap Build issue (bug). There is certainly no reason why you should have to create an application with a capital letter! |
Yeah that's what my assumption was too after discovering it. It's not the first time I'm encountered issues like this with phonegap build. Thanks a lot for your response! It's greatly appreciated! |
create an issue here: https://github.com/phonegap/build/issues |
Same issue observed on sqlite plugin, now reported in phonegap/build#431 |
I have been encountering this error and have not been able to resolve it. When building my app using phonegap build, the Android builds successfully and functions perfectly. However, iOS fails with the error listed below.
Here is a snippet from the config.xml in regards to the plugin:
Any help would be greatly appreciated!
CompileC build/gbot.build/Release-iphoneos/gbot.build/Objects-normal/armv7/FacebookConnectPlugin.o gbot/Plugins/com.phonegap.plugins.facebookconnect/FacebookConnectPlugin.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /project
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DCORDOVA_FRAMEWORK=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=6.0 -iquote /project/build/gbot.build/Release-iphoneos/gbot.build/gbot-generated-files.hmap -I/project/build/gbot.build/Release-iphoneos/gbot.build/gbot-own-target-headers.hmap -I/project/build/gbot.build/Release-iphoneos/gbot.build/gbot-all-target-headers.hmap -iquote /project/build/gbot.build/Release-iphoneos/gbot.build/gbot-project-headers.hmap -I/project/build/include -I/project/build/usr/local/lib/include -I/project/build/UninstalledProducts/include -I/project/build -I/project/build/gbot.build/Release-iphoneos/gbot.build/DerivedSources/armv7 -I/project/build/gbot.build/Release-iphoneos/gbot.build/DerivedSources -F/project/build -Fcordova/plugins/com.phonegap.plugins.facebookconnect/platforms/android/res/xml/Plugins/com.phonegap.plugins.facebookconnect -include /var/folders/8r/065_jhkn1qqf03lr71kjj6480000gp/C/com.apple.DeveloperTools/6.1-6A1052d/Xcode/SharedPrecompiledHeaders/gbot-Prefix-fwplkxvwcbywxbbkrrbxqngqenoo/gbot-Prefix.pch -MMD -MT dependencies -MF /project/build/gbot.build/Release-iphoneos/gbot.build/Objects-normal/armv7/FacebookConnectPlugin.d --serialize-diagnostics /project/build/gbot.build/Release-iphoneos/gbot.build/Objects-normal/armv7/FacebookConnectPlugin.dia -c /project/gbot/Plugins/com.phonegap.plugins.facebookconnect/FacebookConnectPlugin.m -o /project/build/gbot.build/Release-iphoneos/gbot.build/Objects-normal/armv7/FacebookConnectPlugin.o
clang: error: no such file or directory: '/project/gbot/Plugins/com.phonegap.plugins.facebookconnect/FacebookConnectPlugin.m'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
** BUILD FAILED **
The following build commands failed:
CompileC build/gbot.build/Release-iphoneos/gbot.build/Objects-normal/armv7/FacebookConnectPlugin.o gbot/Plugins/com.phonegap.plugins.facebookconnect/FacebookConnectPlugin.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
The text was updated successfully, but these errors were encountered: