Hi guys I'm trying to debug the Evolve App using Visual Studio 2015.
I have built all the relevant projects successfully but when I go to debug I get an error.
I looked into the error and found that it has to do with the jarsigner and the debug.keystore.
I'm relatively new to Xamarin so my knowledge of the keystore is quite limited but I understand that it is used to sign an app during development.
I have looked in the file specified and there is no file.
Do I have to give the app the keystore a alias and password manually or am I missing a debug.keystore completely?
Apologies if I'm totally off the mark here as I'm still getting familiar with Xamarin.
here is the stack trace:
jarsigner error: java.lang.RuntimeException: keystore load: C:\Users\dummy\AppData\Local\Xamarin\Mono for Android\debug.keystore (The system cannot find the path specified)
Any help would be greatly appreciated
Thanks
Android apps need to be signed with keystore, this is normally generated when Xamarin.Android is first installed. Not sure why you dont have it.
You can create a keystore which will be used to sign the apps by using following command:
keytool.exe -list -v -keystore "%LocalAppData%\Xamarin\Mono for Android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
You can find more information here.
Related
I`m having lots of trouble with this one. I tried compiling an app for adhoc distribution and started with this error:
Failed to export archive to ipa
[ERROR] : The selected provisioning profile "" is most likely not a valid Ad Hoc provisioning profile.
[ERROR] : Please ensure you are using a valid Ad Hoc provisioning that is linked to the signing identity, then try again.
I "solved that part" running appc run -p ios -T dist-adhocthrough console line, but then I got
Cannot find module '/Users/ggomez22/Documents/Appcelerator_Studio_Workspace/MODI-Express-Dashboard/undefined'
[ERROR] Alloy compiler failed
also solved that one running sudo npm install alloy -g which also resulted in an error related to my defaultIcon.png (solved that) but now I'm stuck with
Session invalid. Please log in again.
I already tried logging in and out several times but the problem persists, I also tried with appc logout -D and had to use the code sent to my email to log in again but that didn't solve the problem either.
I need help with this. Thank you.
I will advise you to download Appc Studio & setup everything there. It looks like you are trying things piece by piece. Solve one & move to other problem. so it's better to avoid this tedious process & use Appc Studio IDE to build your project.
It's merely of 400MB & everything should be working fine.
Studio can also report you errors if there are any other because you can't be sure what's stopping you from building app from command line.
Looking at that Session Invalid issue, I used to solve it using appc login without logout as it refreshes the tokens & necessary things.
I try to deploy my NativeScript application to my iOS device. I know there have been quite a few questions on this but I just can not get behind it.
What did I try to do?
I followed this tutorial:
http://docs.telerik.com/platform/appbuilder/nativescript/running-your-app/run-app-device
It tells me to install the AppBuilder - which I did (like mentioned here, where I am told to simply run sudo npm install appbuilder -g --unsafe-perm). Executing this (in my project directory) it installs the appbuilder with the following message:
Autocompletion is already enabled
/usr/local/lib
└── appbuilder#3.7.5
So far so good, so I ran appbuilder doctor
WARNING: Mono 3.12 or later is not installed or not configured properly.
You will not be able to work with Android devices in the device simulator or debug on connected Android devices.
To be able to work with Android in the device simulator and debug on connected Android devices,
download and install Mono 3.12 or later from http://www.mono-project.com/download/
When you file an issue, these warnings will help the AppBuilder team to investigate, identify, and resolve the report.
Please, ignore them if you are not experiencing any issues with AppBuilder.
I ignored this warning, since I do not want to deploy to android (yet). So I went ahead on the tutorial and it told me I had to use code-signing of iOS-Apps. On this side they tell me to meet the following prerequisites:
Verify that your preferred AppBuilder client is running and you are logged in.
Verify that you have opened the code for your app in AppBuilder.
Which is where I am already passing out. How do I run the AppBuilder? I thought that was just like NativeScript and I could access anything of it just via the Terminal (if necessary).
create new project
build for iOS: SUCCESS
add media plugin
build for iOS: FAIL
The following build commands failed:
CompileC build/HelloWorld.build/Debug-iphonesimulator/HelloWorld.build/Objects-normal/i386/CDVSound.o HelloWorld/Plugins/org.apache.cordova.media/CDVSound.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
[error] /Projects/Code/hello/platforms/ios/cordova/build: Command failed with exit code 65
Here's the list of commands
phonegap create hello
cd hello
phonegap build ios # WORKS
phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git
phonegap build ios # FAILS
Same scenario happens with cordova, and if I use sudo.
I fixed the problem by completely deleting the iOS folder under platforms, then re-running phonegap build ios.
This is something I ran into a while back. If you’re not an iOS developer, but get tasked with building iOS apps, you may run into this. This particular exit code is fun because xcodebuild doesn’t tell you what the problem is.
Aside from building your app using the Xcode IDE, you also have the command line utility xcodebuild available to you. Assuming the code itself compiles just fine, this tool will tell you, for example, if you’re missing a provisioning profile or something.
In my case, it turned out xcodebuild didn’t have access to the certificate I was using.
So… here’s some things to check for:
Make sure you’ve installed an up to date certificate in your Keychain
Remove expired certificates
Grant access to xcode to use your certificate (or allow all programs to use the certificate)
Make sure you’ve installed an up to date provisioning profile
Remove expired
provisioning profiles
Another option ....
use https://build.phonegap.com which will build the app for you and generate your .ipa and .apk files. It is free for 1 project (just delete your project and then re-upload if you have multiple ones). Just make an account, upload your certs and then you upload your www folder.
Thumbs up if you this was helpful to you!
I got the solution on PhoneGap Google group
And the solution is to add the File plugin also. Strange that these dependencies are not mentioned but it worked. I guess we'll need to randomly try the combinations of plugins until something works.
The bug is logged here: https://issues.apache.org/jira/browse/CB-6225
And it looks like you have to add File plugin first, then Media, the order is important.
try add sudo when add cordova plugin into your project.
sudo cordova plugin add https://github.com/apache/cordova-plugin-media
I was getting an exit code 65 after adding the dialogs plugin. Tried some of the top answers here, but in the end James's advice worked: deleted the ios platform, reinstalled the platform, and then it built.
I am trying my best to update an app for Cydia that is constantly crashing on startup. It has a base SDK of 7.0 with a deployment target of 6.0. I have Xcode set to not require code signing. I have tried this many different ways, and each way, it crashes on startup when I download from Cydia.
First, I tried not code signing and using ldid on my Mac to psuedo-sign it. I copied the .app file to my desktop and then did:
Open Terminal on the OSX system where the application was built.
Add the SHA1 hashes to the application binary:
# cd ~/Desktop/
# ldid -S HelloWorld.app/HelloWorld
I tested this out by copying it to my iPhone, and it worked fine. I then uploaded the .app file to thebigboss repository, and when it went live I downloaded it, but it crashed on startup.
My next attempt was to simply create a certificate in Keychain Access. I left it as a self-signed root and changed it to code-signing. I put in a unique serial, and left valid days at 365. I then tried using it in Xcode but Xcode gave me an error that it was no longer valid and I needed to check the expiration date of my certificate.
I really need help with this, as I cannot figure out for the life of me what is going wrong here, and customers on Cydia are getting upset.
I'm trying to generate an IPA file for my App from Xamarin Studio, on Mac, and i'm getting this error:
"The codesign tool could not be found"
I checked the certificates, provisioning profiles, etc. I generated apps before in this machine, using the same developer account.
From Terminal i can see that codesign command is being recognized, but maybe Xamarin Studio is looking for it in a different place.
Similar problem in XCode
I tried to generate the IPA from a random project in XCode and it gave me a similar error:
"can't exec 'codesign'"
Then i found an issue on stackoverflow that said to copy the codesign program from /usr/bin to /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
I did that and everything worked fine in XCode, but still getting the same error from Xamarin Studio.
Any ideas?
Thanks in advance!
I don't know anything about xamarin, but chances are you don't have command line tools installed. Go to preferences and downloads. I think it comes standard with Xcode 5 now, but maybe not.
Since i was totally out of time, and needed a workaround, i reinstalled the OS and all the tools, and it did the job for me.
I'm sorry i couldn't get to a more concrete solution for this problem.