Skip to content
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

Closed
mcacciottolo opened this issue Dec 4, 2014 · 9 comments

Comments

@mcacciottolo
Copy link

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:

<gap:plugin name="com.phonegap.plugins.facebookconnect" version="0.9.0">
    <param name="APP_ID" value="<MY APP ID>" />
    <param name="APP_NAME" value="<MY APP NAME>" />
</gap:plugin>
<preference name="phonegap-version" value="3.6.3"/>

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)

@aogilvie
Copy link
Collaborator

aogilvie commented Dec 8, 2014

@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?

@mcacciottolo
Copy link
Author

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.

@aogilvie
Copy link
Collaborator

aogilvie commented Dec 8, 2014

@mcacciottolo
Wow! What was special about the name of the app?? space? -> "XXX XXXXXX"

@mcacciottolo
Copy link
Author

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?

@aogilvie
Copy link
Collaborator

aogilvie commented Dec 8, 2014

@mcacciottolo
Your facebook application name is •gbot•?

@aogilvie
Copy link
Collaborator

aogilvie commented Dec 8, 2014

@mcacciottolo
I created an application as such:

cordova create •testapp•

cd •testapp•

cordova platform add ios

cordova build ios

cordova plugin add ../../../../aogilvie/phonegap-facebook-plugin/ --variable APP_ID="123456789" --variable APP_NAME="•testapp•"

cordova build ios

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!

@mcacciottolo
Copy link
Author

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!

@aogilvie
Copy link
Collaborator

aogilvie commented Dec 8, 2014

create an issue here: https://github.com/phonegap/build/issues

@brodycj
Copy link

brodycj commented Apr 21, 2015

Same issue observed on sqlite plugin, now reported in phonegap/build#431

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants