GoogleCloudMessaging integration on iOS using cocoapods - c++

I'm trying to integrate GoogleCloudMessaging(GCM) on iOS project. (Cocos2d-x v3.2)
As per the google's instruction, (https://developers.google.com/cloud-messaging/ios/client)
I use cocoapods but failed with following error.
$ pod install
Updating local specs repositories
Analyzing dependencies
[!] Unable to satisfy the following requirements:
- `GoogleCloudMessaging` required by `Podfile`
Here are what I tested.
install GCM on cocos2dx project (v3.2) -> failed.
create a non-cocos2dx project and install GCM -> succeeded
install GoogleAnalytics on cocos2dx project -> succeeded.
create a cocos2dx project using v3.7 and install GCM -> failed.
I don't have any clue yet why installing GCM is failed but GoogleAnalytics is not.
Is there anyone who succeed integrating GCM on iOS?
EDIT
This is my Podfile
# Uncomment this line to define a global platform for your project
# platform :ios, '6.0'
source 'https://github.com/CocoaPods/Specs.git'
target 'SampleApp iOS' do
pod 'GoogleCloudMessaging'
end
target 'SampleApp Mac' do
end

I could solve this problem referring a post in cocos2d-x forum.
Changing Deployment Target to 7.0 or higher in Xcode project setting will clear this issue.

Related

No such module 'IBMCloudAppID' in xcode 10.2 Swift

I am trying to use IBMCloudAppId is my swift project and getting an error when I am trying to import IBMCloudAppID in my xcode 10.2.
I followed these steps as
Open your Xcode project and enable Keychain Sharing (Under project settings > Capabilities > Keychain sharing)
Under project setting > info > Url Types, Add $(PRODUCT_BUNDLE_IDENTIFIER) as a URL Scheme
Add the following import to your AppDelegate.swift file:
import IBMCloudAppID
Getting an error
No such module 'IBMCloudAppID' in xcode 10.2
And my POD file looks like
use_frameworks!
def shared_pods
platform :ios, '10.2'
pod 'BMSCore', '~> 2.3.1'
pod 'JOSESwift', '~> 1.1.0'
pod 'IBMCloudAppID'
end
target 'IBMCloudAppID' do
use_frameworks!
pod 'IBMCloudAppID'
shared_pods
end
target 'IBMCloudAppIDTests' do
shared_pods
end
Looks like you haven't installed pods in the application.
Try with the following steps which should resolve the issue.
Install Cocoapods in your machine
Run pod install in the terminal at the root of your app project.
open your-project.xcworkspace in Xcode
Clean and Build the app
Answer to this question
And after opening workspace, build library first and then project.

.Net Core solutions build locally, but fails build on Azure DevOPS pipeline

My .Net Core 2.1 app builds successfully on my local machine, however on my Azure DevOPS pipeline, it fails in the build stage with the following error:
##[error]Error: C:\hostedtoolcache\windows\dncs\2.1.500\x64\dotnet.exe failed with return code: 1
##[error]Dotnet command failed with non-zero exit code on the following projects : D:\a\1\s\API\API.csproj,D:\a\1\s\AuthCore\AuthCore.csproj,D:\a\1\s\DomainModel\DomainModel.csproj,D:\a\1\s\Repo\Repo.csproj
I have added the .Net Core SDK installer before the restore step in the pipeline (and tried various versions) but it fails the same way every time.
The full log file of the build stage is available here: LINK
.Net Core solutions build locally, but fails build on Azure DevOPS pipeline
According to the error messages in your link, like following:
The type or namespace name 'DataAnnotations' does not exist in the
namespace 'System.ComponentModel'
It seems you are missing the references when you build the project/solution. So, if you add those references with nuget, you may need also add a nuget restore task to restore those nuget packages.
Check the details info from .NET Core task
Hope this helps.

framework not found FBSDKShareKit for architecture arm64

Xcode doesn't found the framework FBSDKSharekit when i build.
The Error
I already have a configuration for Firebase Authentication (Use of FBSKCoreKit, FBSDKLoginKit, Bolt).
And I just need the FBSDKShareKit.
Dependancies
I follow all the installation process for Carthage, but it not working.
And the search path is configured.
Xcode run on 9.2 version and Swift 3
Remove pods and re-install
There is a problem in Xcode 9 same problem with me...

IONIC2 transformClassesWithDexForDebug

I got this error
`FAILURE: Build failed with an exception.
What went wrong?
Execution failed for task ':transformClassesWithDexForDebug'.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/zxing/BarcodeFormat;
`
I have enabled Multidex (multiDexEnabled = true) in build.gradle and also added following
dexOptions {
incremental = true;
preDexLibraries = false
javaMaxHeapSize "2g"
}
but still getting that error.
Even I was facing the similar issue, I tried updating Cordova, Ionic and setting ANDROID_HOME and JAVA_HOME and almost all the solution over the web, but nothing worked for me. Finally, it was the issue with PhoneGap-push plugin. The 2.0 version of PhoneGap-push plugin has some collision with some plugins like
Google Analytics
To be more specific the plugins that use google play services.
So Below is my solution.
First, remove the PhoneGap-push plugin 2.0 from your application.
Now try to build the app by commenting all the lines that use push plugin.
If the build is successful then it will be the issue with push plugin. Then follow below instructions to fix the issue. If the build is not successful then you might be having some other issue.
First, uninstall the PhoneGap-push plugin 2.0
Then go to project -> package.json and search for push and replace the line with “”: “4.0.1” earlier it will be 4.3.0 or 4.3.1
Now add push plugin again to the project with below command ionic plugin add phonegap-plugin-push#1.10.5 --variable SENDER_ID=XXXXXXX
Now build your app works like a charm....
This issue is already opened in phonegap-pushplugin repo . They have a next milestone of releasing version 2.1.0 which will be fixing this issue.

Missing build.xml when creating project with ClickStart?

I am using Eclipse EE version and CloudBees plugin to create a ClickStart JBoss 7 project. However, I am not very familiar with the EE version of Eclipse, and used Netbeans to edit my JSP.
Then I used CloudBees SDK to run and deploy my new project but it failed (the command prompt):
D:\Personel\Java EE\HelloCloudBees>bees run
ERROR: java.io.FileNotFoundException: D:\Personel\Java
EE\HelloCloudBees\build.xml (The system cannot find the file
specified)
I found no build.xml file in my folder. How can I create it?
bees run command expect an ant-based project structure, so the build.xml. As documented
CloudBees project commands are only available for applications
generated using the Bees wizard (on the web), built using the
CloudBees SDK style.
This is more or less some legacy stuff, as is now superseded by ClickStart. Equivalent command would be bees app:run but require your app to first be packaged as a WAR and only support the default tomcat6 runtime. So for your specific use-case would be simpler to package and deploy on a local JBoss 7 server. To deploy on RUN#Cloud, use bees app:deploy or just git push and let DEV#Cloud Jenkins build and deploy for you (assuming you created app with a clickstart).
Also, there's no need to use Eclipse if you're familiar with NetBeans.
Have you tried out maven?If yes you can download it and then use mvn eclipse:eclipse and then you can import your project in your workspace using eclipse import capabilities.File -> Import -> Maven -> Existing Maven Project...you point to the file where your pom.xml file is..and is imported. Take into accoutn m2eclipse plugin in eclipse must be installed prior.
regards
\n\m