We replace broken cell phone screens

  (403) 992-7225

Cell Phone News

BlackBerry Dynamics for iOS: Two Targets in One Xcode Project


When you integrate your existing app with the BlackBerry Dynamics SDK, you will need to create a separate version of your app with the BlackBerry Dynamics SDK. Depending on the complexity of your app, there are two routes you can consider for the source code management.

  1. Manage two separate source repositories/branches, one with the BlackBerry Dynamics APIs and another one without.
  2. Create two different targets of an iOS project and build two different IPAs.

I have a simple trick to achieve the second option, which I’ll demonstrate in the following steps. Setting up two targets in a project is useful when creating two IPAs from one project.

After following the steps, you will be able to create two different targets of a project, one with BlackBerry Dynamics SDK integrated and other without BlackBerry Dynamics SDK.

1. Duplicate the target.

2. Change the Bundle Identifier of the duplicated target.

3. For Objective-C:

a. Go to Build Settings and search for Preprocessor Macros.

b. Add the value DEVELOPMENT=0 in Debug and Release in the original target and DEVELOPMENT=1 in Debug and Release in the duplicated target.

4. For Swift:

a. Go to Build Settings and search Swift Complier.

b. Add the value –DDEVELOPMENT to Other Swift Flags to only one of the targets, and not both.

5. You can change some additional Build Settings and Info settings.

6. This is how to detect which target is built.

7. You can add new files to a specific target.

That’s it for now… Happy Coding!

Need Development Help? The BlackBerry Developer Community Forum has your Answer…

Join the conversation, engage with peers, share product ideas, and get your app development questions answered. This free BlackBerry Developer Program resource allows you to be part of a Developer Community that is at the center of all the information you’ll need to stay connected with the world’s leading secure development platform for enterprise. Read more about the Developer Community on our blog, and we encourage you to follow the Developer Community forum and join the conversations happening right now.

Originally posted on the Inside BlackBerry Developer blog.



To read more click here.

 

 

 

 

 

 

News for Canada

1st blizzard of the season blankets eastern Newfoundland, with more wind and snow to come

War Memorial

The Avalon Peninsula was hampered by inclement weather on Saturday, as the area's first blizzard came through.



Sat, 16 Dec 2017 04:14:38 EST

Read More


Jury finds Millard and Smich guilty of 1st-degree murder in death of Laura Babcock

Laura Babcock

A jury has found Dellen Millard and Mark Smich guilty of first-degree murder in the death of Toronto woman Laura Babcock.



Sat, 16 Dec 2017 11:53:10 EST

Read More


'If this happened to my baby I would be very devastated,' says Sask. teen who killed 6-week-old infant

Nikosis

The teen who fatally beat and stabbed six-week-old Nikosis Cantre told a Saskatoon courtroom Friday she's 'truly sorry' and that 'if this happened to my baby, I would be very devastated.'



Fri, 15 Dec 2017 10:13:30 EST

Read More


Hunter Harrison, CSX CEO and former head of CP Rail and CN Rail, dies at 73

Hunter Harrison 20150303

Hunter Harrison, the CEO of railroad giant CSX Corp. and the former head of Canada's two largest railways, has died days after taking an unexpected leave of absence.



Sat, 16 Dec 2017 15:59:09 EST

Read More


Prince Albert Daily Herald lives on with employee buyout

Prince Albert Daily Herald

The Prince Albert Daily Herald announces it had reached an agreement with Star News Publishing for an employee buyout, with a deal expected to close in the near future.



Sat, 16 Dec 2017 09:49:24 EST

Read More


Flat-rate CPP death benefit panned as insufficient to cover funeral costs

CPP Death Benefit 20171216

A change to the Canada Pension Plan to provide a flat-rate death benefit to help low-income families cover funeral costs falls short of what funeral homes say is needed to cover the cost of a final farewell.



Sat, 16 Dec 2017 15:27:29 EST

Read More


Family of billionaire couple Barry and Honey Sherman slams rumours circulating ahead of autopsy results

Barry Sherman

Toronto police say autopsies are being performed on two bodies found in a North York, Ont., home that belonged to billionaire Barry Sherman and his wife, Honey.



Sat, 16 Dec 2017 14:24:18 EST

Read More


Bell says CRTC promise of free phone unlocking doesn't apply to everyone

Amanda Barnhardt cell phone

Canadians were supposed to be freed from cellphone unlocking fees come Dec. 1, but some with a Bell-locked phone have found they've had to fight for their freedom.



Sat, 16 Dec 2017 05:00:00 EST

Read More


High winds and snow hit N.L. this weekend

War Memorial

The Avalon Peninsula was hampered by inclement weather on Saturday, as the area's first blizzard came through.



Sat, 16 Dec 2017 04:14:38 EST

Read More


'I have no country': After more than 60 years in Canada, B.C. woman discovers she doesn't have citizenship

irene_child

Irene Gyselinck's discovery that she never became Canadian has sent her life into a tailspin, leaving her unable to acquire valid ID and at risk of losing her health insurance.



Sat, 16 Dec 2017 05:00:00 EST

Read More


Hydro One names 4 crew members killed in Ontario helicopter crash

darcy jansen jeff howes hydro one helicopter crash tweed dec. 14 2017

Hydro One has released the names of the four crew members who were killed Thursday when their helicopter crashed in eastern Ontario.



Sat, 16 Dec 2017 09:27:58 EST

Read More


Provinces have until the end of 2018 to submit carbon price plans: McKenna

Clean Fuels Strategy 20171213

Environment Minister Catherine McKenna says a national price on carbon won't be imposed on any province for at least another year.



Fri, 15 Dec 2017 12:48:22 EST

Read More


Canadian players in Russia are looking to form nucleus of Team Canada

Derek Roy

Twenty-five Canadians chosen by Hockey Canada for this week's Channel One Cup tournament in Moscow are being sized up by general manager Sean Burke and head coach Willie Desjardins for the team that will go to the Winter Games in Pyeongchang.



Sat, 16 Dec 2017 05:00:00 EST

Read More


Top Canadian women's gymnastics official charged with multiple sexual offences

Dave-brubaker-charged

Dave Brubaker, the women's national team director of Gymnastics Canada, has been charged with multiple sexual offences.



Fri, 15 Dec 2017 19:32:03 EST

Read More


''It makes my heart smile': Calgary woman decks out school bus with holiday decorations

Gay Powlan bus

It looks a bit like a yellow Christmas tree cruising down the road, but it's really a Calgary school bus decked out in its holiday finest.



Fri, 15 Dec 2017 16:30:47 EST

Read More


What happens when the city, police 'clean up' a tent city

Excavator

Earlier this fall, police and city staff visited an encampment of people who didn’t have a place to sleep indoors – a “tent city” that attracted media attention when a suitcase of mysterious wrestling photos was found there.



Fri, 15 Dec 2017 12:06:27 EST

Read More


Canadians Kripps, Lumsden snag silver at bobsleigh World Cup

Austria Bob World Cup

Canada took a silver of medal at a bobsleigh World Cup stop at the Igls track in Innsbruck, Austria, on Saturday, with Justin Kripps and Jesse Lumsden staking claim to the second-place spot.



Sat, 16 Dec 2017 07:02:59 EST

Read More


Canada's Lewis Irving lands 1st podium finish at World Cup aerials

World Cup Freestyle Skiing

Lewis Irving now has a podium finish to add to his resume after scoring a bronze medal in aerials at the World Cup event in Secret Garden, China, on Saturday.



Sat, 16 Dec 2017 10:01:30 EST

Read More


Canadians take silver, bronze in World Cup luge

gough-alex-120917-620

Canadian sliders made several trips to the podium at the luge World Cup event in Lake Placid, N.Y., on Saturday as Alex Gough led the way with two silver medals.



Sat, 16 Dec 2017 11:45:32 EST

Read More


Bombardier, Boeing prepare to make final arguments in bitter trade dispute

BOMBARDIER-AIRBUS/CSERIES

The hearings mark the last chance for all sides to appear before the commission before it issues a final ruling, likely early in the new year, which will determine whether every C-Series jet entering the U.S. is hit with a hefty duty.



Sat, 16 Dec 2017 08:13:28 EST

Read More