I have built a Blackberry for simulator 9900 (BlackBerry 7 OS), and want to run it on BlackBerry device which have BlackBerry 6 OS.
So if any body have idea how to do it, please provide the solution.
Running applications compiled for a later version of the OS on an earlier version is not supported. Typically this will fail when you attempt to run it because there are API's missing, but even if the application only uses APIs that are available in both levels, it is not supported.
So your only option is the install the OS 6 level of the JRE in your Eclipse, change the project to use that for compilation and build a version using the OS 6 JRE. This build will then run on both OS 6 and OS 7.
If you have used OS 7 level only APIs and these are essential to your app so you wish to retain them in the OS 7 version (obviously you can't use them in OS 6), then you will need to find some way to build the OS 7 and OS 6 versions separately, and not use the OS 7 APIs in your OS 6 build. The easiest approach that I am aware of is to use the pre-processor. But other people have developed other approaches depending on how they have automated the build.
You might be asking a different question, which is, how do you actually target a different Simulator? To do this, look at your Run or Debug configuration (under the Run menu item) and select the Simulator tab, That will enable you to choose another Simulator. The OS 6 JRE comes with some Simulators and you can download more:
http://us.blackberry.com/sites/developers/resources/simulators.html
Or you might be asking how to put the application on a device in general? There are a number of options to do this, as explained on this page:
http://developer.blackberry.com/bbos/java/documentation/package_distribute_apps_2006593_11.html
Related
I am currently using xcode 5.1 with Mac 10.8.5. But i can not install ios simulator in this xcode? any one tell me how to install ios 5 simulator ?
Man, this really made me angry today when I upgraded from Xcode 5.0 to Xcode 5.1 and discovered that I no longer had a functional iOS 5.1 simulator. There was nothing in the Software Update process that gave me any heads-up whatsoever that this would disable iOS 5.0/5.1 simulators. Bad Apple! Bad!
Anyway, here's the workaround I came up with. It seems pretty clean.
I noticed that in ~/Library/Caches/com.apple.dt.Xcode/Downloads there was an old file sitting around called Xcode.SDK.iPhoneSimulator.5.1-5.1.dmg (thank god I never cleared out that cache directory).
I double-clicked this disk image to mount it, and then double-clicked the .pkg file inside that. The package installer then placed the contents into a subdirectory of /Platforms.
I then moved /Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk into /Applications/Xcode/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs and restarted Xcode.
Bam. Done. Back in business.
Note: Another approach, if you happen to have a thorough Time Machine backup of your full system, as Pandey Laxman pointed out earlier, is simply to restore the contents of /Applications/Xcode/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk from an older backup. In my case, I wasn't able to do this because my development system is a MacBook Air that I keep backed via Time Machine up onto a permanently-installed 32GB SanDisk Cruzer Fit USB flash drive (as well as two extra Time Machine backups on separate network drives). Anyway, because the backup drive is relatively small, when I first set up Time Machine on this system, I had excluded /Applications from my backup (something I don't recommend doing).
In order to develop for the latest version of iOS, you need the latest iOS SDK, which requires the latest version of XCode, which in turn requires the latest version of OSX (at least as of writing this iOS 8.3 requires XCode 6.3, which requires OSX 10.10 - all the latest and greatest).
I would guess that Apple doesn't want to support iPad 1s and old iPhones anymore running iOS 5. Thus, they've done what they could to discourage developers from supportting them.
I, personal, put a lot of effort into coding to support iOS 5 through 8. I am not in hurry to throw that backwards compatibility away, but obviously developing for the most current version of iOS takes priority.
To get to the point, you can't install or run an iOS 5 simulator on OSX 10.10 Yosemite. I couldn't get an iOS 6 simulator to run either for some reason (even though I was able to install it in XCode 5).
I did, however, find a solution so I could use simulators for iOS 5 through 8 on my machine.
How? Setup a dual boot into an older os and install some software which can no longer be downloaded, but I tracked down.
I've posted the steps and all the software here. Nothing is difficult about any of this, but it will take many hour of downloading and running installations, ect. Reserve a day to do this while working another machine most of the time.
Create a partition on your hard drive from which you can run OSX Lion. I found 32 GB was large enough.
You may also want to create an additional partition at the same time rather than use a flash drive in step 2. I also made it 32 GB, but it could probably be a lot smaller (8? maybe even 4 gig?).
Here's a link to help with that:
http://arstechnica.com/apple/2014/06/how-to-create-a-test-partition-for-the-os-x-yosemite-beta/
Create a bootable installer drive for Lion. You can use a flash drive, or the extra partition suggested in step 1 (that's what I did when the only flash I had on me was acting up).
Here's the os:
OSX 10.7.2 Lion
https://drive.google.com/file/d/0BwmycZWygE8EUlhCYWlOWjlCcHM/view?usp=sharing
Here's directions for doing this:
http://www.tech-recipes.com/rx/11807/os-x-lion-convert-os-x-lion-dmg-installer-to-a-bootable-usb-thumbdrive-install-without-an-optical-drive/
Run the installer. Restart the machine whiling holding down the "option" key on the keyboard to select your boot device.
Once you have Lion up and running, you need to upgrade it to 10.7.5 (sorry I didn't have that to post to begin with).
Simply use the basic software update mechanism to do this.
Install XCode 4.6. Here's the software:
XCode 4.6.3
https://drive.google.com/file/d/0BwmycZWygE8ETnlFQ1BSYVV1ZUE/view?usp=sharing
Normally, you ought to be able to install an iOS 5 simulator via XCode, but Apple has blocked this.
You can however, install it manually as others have described in this thread for the various sdks (as long as you already have the software!)
Here is the software (since we don't have just happen to be lucky enough to have it previously installed):
Sorry, I don't have 5.1, only 5.0
iOS 5.0 Simulator
https://drive.google.com/file/d/0BwmycZWygE8ETndPOFJyUVg0b3M/view?usp=sharing
Install the command line tools if necessary. Again, XCode ought to allow you to do this, but it will fail when you try the normal way. Go ahead and give it a try.
Here's a dmg instead which you can install yourself that is compatible with this setup:
Command Line Tools (XCode 4.6 / OSX 10.7)
https://drive.google.com/file/d/0BwmycZWygE8EWm9QTW5HYV9PUnM/view?usp=sharing
Get your project to build in this new environment. There are permission issues and such when you try to cross over to your primary drive.
I found the easiest way to get everything working was to copy whatever I needed to the Lion drive and make sure all the relative paths were identical.
I also had to play a bit with the code because what compiled for the 7 and 8 sdks didn't work perfectly with this one. That's on you.
I believe the iOS 6 simulator will already be installed for you, but otherwise you should be able to download that still via XCode if needed.
Enjoy having all these simulators now!
you need to copy the simulator SDK to Xcode 5.1.
First copy the simulator SDKs from your previous installed Xcode.
then paste it in
Xcode 5.1 "Show Package Contents->Contents->Developer->Platforms->iPhoneSimulator.Platforms
->Developer->SDKs folder
There restart the Xcode 5.1.
Unfrotunately ,Xcode 5.1 in OS X 10.9 or 10.8.5 the iOS 5 simulator is no longer available.
Better to use some older versions like 4.6 for use iOS 5 simulator
using of Xcode 5 under OS X v10.8 then if you go to Preferences -> Downloads you should see the 5.0 and 5.1 simulators available under Components. You can download and install directly from there.
If you're using Xcode 5 under OS X v10.9 then the iOS 5 simulator is
no longer available.
xCode 5.02 up to available iOS 58 simulator but after updated the xcode through 5.1 the available simulator start from iOS 6
iOS Simulator
Performance issues can arise when running apps within the iOS Simulator on OS X Mavericks with a simulated OS version of iOS 6.1 or earlier.
A workaround is to disable timer coalescing while using the iOS 6.1 or earlier simulator by executing the following command in a Terminal window:
sudo sysctl -w kern.timer.coalescing_enabled=0 (15501929)
https://developer.apple.com/library/ios/releasenotes/DeveloperTools/RN-Xcode/xc5_release_notes/xc5_release_notes.html
I'm developing a blackberry application to encode and decode some important information. For this I'm using the net.rim.device.api.crypto.* package in my application. I'm developing in blackberry OS 7.1 simulator but my blackberry device has OS 5.0 . When I try to download the app in my device, it gives me the following error:
"This application requires the following module, which is not installed: net_rim_crypto"
Also I'm not able to use the update site and install previous blackberry Os versions as the installation fails whenever I try to install it.
So, my question is mainly: How can I make my apps backward compatible in this case? Also, I'm not able to install and run my app (mentioned above) on the device. How can I accomplish this? Please help. Thanks in advance.
Please note that BlackBerry apps are not backward compatible, that is to say an app built on OS 7.0 will not work with OS 6.0 or OS 5.0. However, an same app built on OS 5.0 will work on handsets with OS 5.0+. Considering you are developing your app in OS 7.1 simulator indicates you are using BlackBerry JRE 7 and net_rim_crypto that you implemented seem to be missing in OS 5. In order to develop apps for OS 5, please work with JRE 5.
I am trying to get into iPhone apps and my 2009 Macbook Pro (running 10.6.8) is not capable of running the newest version of Xcode.
Do I need the newest version of Xcode to properly create an app? (I have v 4.02)
If so is a software update the way to go or will I need to upgrade the computer to run Xcode efficiently?
With 10.6.8 you can at least upgrade to Xcode 4.2 so you should do this. But you won't be able to work with any projects that include Storyboards or the new collection literals. You will be able to use ARC (modern memory management). You won't be able to use any iOS 6 features (max iOS version is 5.0 I think, maybe 5.1).
For learning this is fine, your main limitation will be opening sample code projects from others that use new features, you won't be able to run them. Also you won't be able to use 3rd-party frameworks targeted for iOS6 / OSX10.7+.
But your 2009 Macbook Pro should run the latest OSX.10.8.2 fine. I am running a 2008 MBP (6MB ram) with no problems. Then you can run the latest XCode 4.5.2 and be compatible with everything.
WARNING! DON'T WASTE YOUR TIME!
OS X 10.6.8 (snow leopard) is now TOO OLD to publish an iphone app.
You'll need a new mac with OS X 10.8 (mountain lion). If the hardware in your mac won't support an upgrade to more recent OS X versions, don't waste your time. Apple have not maintained backward compatibility, so the necessary versions of Xcode or Application Launcher won't run on 10.6.8.
You can develop, test and simulate with your old mac, but ultimately to build and publish your app you'll need a newer Mac.
You don't need the newest version of Xcode to create an app, but you'll need the newest version of Xcode to create apps that take advantage of newer versions of iOS.
Yes You can Develop but in order to avail the latest developments and improvement it is advisable to upgrade.Upgrade usually makes the life of developers easy, though there is some initial resistance towards change
Yes You can develop apps through your Xcode. The last version of Xcode is 4.2 for Snow Leopard. But you need to update your OS for develop for latest OS and device. Also Upgrade your OS, So you can use latest Xcode and get advantage of development tools
My Application is not running one the old simulators With Blackberry JRE 5,6. The project runs fine on the new simulators with JRE 7 (model 9900, 9810, 9860). The memory size of the application is more than ~6MB.
I tried Cleaning the application in all such ways. In lower simulators the COD file also gets deployed in the simulator, but it doesn't shown in the downloads folder.
What might be the problem.
You say "~6MB". That is pretty close to the maximum app size on older versions of BBOS. You might need to factor your app into multiple cods, to keep the size of the cod groups smaller.
Which BlackBerry JRE did you develop your app in? Please note that BlackBerry apps are not backward compatible, i.e. an app developed in JRE 7.0 will not work below OS 7 as not all APIs used in JRE 7 will be available in the older operating systems. BlackBerry apps are forward compatible and for an app to function on OS 5, 6 and 7, you should develop the application in JRE 5.
I have developed application for BlackBerry OS 5 and now I want to port it to BB OS 6
While porting app, I am facing following issue --
I have added separate org.json.me package in OS 5 which is inbuilt in OS 6
When I add BB OS 6 library instead of OS 5 in the app it gives me error
Please suggest possible solution to run same app on both platforms
You can rename the package name of your json package to com.yourcompany.json instead of leaving it as org.json.me. This is a simple solution to your problem, there might be better solutions as well.
I have got answer to my question
I used BlackBerry OS 5 library to compile my application which is running excellent in OS 6 device also