At monaca cloud IDE, use Wizcorp/phonegap-facebook-plugin (https://github.com/Wizcorp/phonegap-facebook-plugin)
I get an error when I try to register with the cordova plug-in and go through the ios build.
If you delete it, the build will go through.
I had a build error on Android under the same conditions, but when I overwrite AndroidManifest.xml with AndroidManifest.xml in the plug-in, the build now passes.
Overwriting the plist file did not resolve the issue in ios.
This is part of the error.:
/Applications/Xcode6_4/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 -O0 -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 -DDEBUG=1 -isysroot /Applications/Xcode6_4/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=6.0 -iquote /tmp/monaca/57835e5a7e2193375f084608/ios/skeleton/platforms/ios/Build/Intermediates/MonacaApp.build/Debug-iphoneos/MonacaApp.build/MonacaApp-generated-files.hmap -I/tmp/monaca/57835e5a7e2193375f084608/ios/skeleton/platforms/ios/Build/Intermediates/MonacaApp.build/Debug-iphoneos/MonacaApp.build/MonacaApp-own-target-headers.hmap -I/tmp/monaca/57835e5a7e2193375f084608/ios/skeleton/platforms/ios/Build/Intermediates/MonacaApp.build/Debug-iphoneos/MonacaApp.build/MonacaApp-all-target-headers.hmap -iquote /tmp/monaca/57835e5a7e2193375f084608/ios/skeleton/platforms/ios/Build/Intermediates/MonacaApp.build/Debug-iphoneos/MonacaApp.build/MonacaApp-project-headers.hmap -I/tmp/monaca/57835e5a7e2193375f084608/ios/skeleton/platforms/ios/Build/Products/Debug-iphoneos/include -I/tmp/monaca/57835e5a7e2193375f084608/ios/skeleton/platforms/ios/Build/Products/Debug-iphoneos/usr/local/lib/include -I/tmp/monaca/57835e5a7e2193375f084608/ios/skeleton/platforms/ios/Build/Intermediates/UninstalledProducts/include -I/tmp/monaca/57835e5a7e2193375f084608/ios/skeleton/platforms/ios/Build/Products/Debug-iphoneos -I/tmp/monaca/57835e5a7e2193375f084608/ios/skeleton/platforms/ios/Build/Intermediates/MonacaApp.build/Debug-iphoneos/MonacaApp.build/DerivedSources/armv7 -I/tmp/monaca/57835e5a7e2193375f084608/ios/skeleton/platforms/ios/Build/Intermediates/MonacaApp.build/Debug-iphoneos/MonacaApp.build/DerivedSources -F/tmp/monaca/57835e5a7e2193375f084608/ios/skeleton/platforms/ios/Build/Products/Debug-iphoneos -FMonacaApp/Plugins/phonegap-facebook-plugin -include /tmp/monaca/57835e5a7e2193375f084608/ios/skeleton/platforms/ios/Build/Intermediates/PrecompiledHeaders/MonacaApp-Prefix-edgvfsuxtpvleicazynggdrepcxi/MonacaApp-Prefix.pch -MMD -MT dependencies -MF /tmp/monaca/57835e5a7e2193375f084608/ios/skeleton/platforms/ios/Build/Intermediates/MonacaApp.build/Debug-iphoneos/MonacaApp.build/Objects-normal/armv7/FacebookConnectPlugin.d --serialize-diagnostics /tmp/monaca/57835e5a7e2193375f084608/ios/skeleton/platforms/ios/Build/Intermediates/MonacaApp.build/Debug-iphoneos/MonacaApp.build/Objects-normal/armv7/FacebookConnectPlugin.dia -c /tmp/monaca/57835e5a7e2193375f084608/ios/skeleton/platforms/ios/MonacaApp/Plugins/phonegap-facebook-plugin/FacebookConnectPlugin.m -o /tmp/monaca/57835e5a7e2193375f084608/ios/skeleton/platforms/ios/Build/Intermediates/MonacaApp.build/Debug-iphoneos/MonacaApp.build/Objects-normal/armv7/FacebookConnectPlugin.o
In file included from /tmp/monaca/57835e5a7e2193375f084608/ios/skeleton/platforms/ios/MonacaApp/Plugins/phonegap-facebook-plugin/FacebookConnectPlugin.m:11:
MonacaApp/Plugins/phonegap-facebook-plugin/FacebookConnectPlugin.h:11:9:fatal error:'FacebookSDK/FacebookSDK.h'file not found
#import<FacebookSDK/FacebookSDK.h>
^
1 error generated.
** BUILD FAILED**
The following build commands failed:
CompileC Build/Intermediates/MonacaApp.build/Debug-iphoneos/MonacaApp.build/Objects-normal/armv7/FacebookConnectPlugin.o MonacaApp/Plugins/phonegap-facebook-plugin/facebookConnectPlugin.normal_plugin.normal.combustions.7components.components
(1 failure)
Error executing command: xcodebuild
Enable to delete certificate matching "
Build error—Error building project source code
I thought it might be a certificate incompatibility error, so I tried again from the ios app settings for the year, but it didn't improve.
If you have encountered the same error or have solved it, could you tell me how to do it?
Thank you for your cooperation.
This plug-in uses symbolic links internally, so building errors occur when integrated into Monaca.Replace the symbolic link with a physical file and the build will succeed.
For example, for Macs:
https://github.com/Wizcorp/phonegap-facebook-plugin
Download the phonegap-facebook-plugin-master.zip from the to Download ZIP.Put it in the appropriate working directory and run the following command
$unzip phonegap-facebook-plugin-master.zip
$ cd phonegap-facebook-plugin-master/platforms/ios/FacebookSDK.framework/
$ rm FacebookSDK
$ rm Headers
$ rm Resources
$ rm Versions/Current
$ mv Versions/A/FacebookSDK.
$ mv Versions/A/Headers/.
$ mv Versions/A/Resources/.
$ cd../../../..
$ zip-r phonegap-facebook-plugin-custom.zip phonegap-facebook-plugin-master-x phonegap-facebook-plugin-master/.git*
The last zip command should have created a new "phonegap-facebook-plugin-custom.zip" file, so upload it as a plug-in from the Monaca IDE.
Reconfigure plug-in settings (APP_ID, APP_NAME, etc.) on IDE.
Now, if you rebuild it, it will succeed.
© 2024 OneMinuteCode. All rights reserved.