Saturday, 20 June 2015

Quick fix - duplicate symbols for architecture x86_64 issue

Go through bellow steps and resolve the issue.


1. Please check your source bundled - Does have any files added two time?  If yes, then delete one of any one copy, and chose option remove from reference.

For example test.h or test.m  file have in your bundled but by mistake test.h or test.m files again added in some other directory, now your bundled having a two clone copy of same files.

2. Be careful check your code structure, have there any global class declaration & create instance of it, just remove instance from there and keep in app delegate for global access or create instance in  class file where you want that class.


For example your bundled have global.h  file this file having list of declaration header files for global access, if also you have created instance there so remove it from there.

Code look like in your global.h file.

#import "test.h"

test *objTest;


Above code having issue some time, get duplicate symbol error while compile source. Just declaration is ok but can't create  instance in global.h file, instance create in app delegate or in class file where you want.

Optimised above cases in XCODE 6.3.2, OS X 10.10.3





Bhavesh Kumbhani
IOS Software Professional 

follow on
Facebook
LinkedIn


Wednesday, 25 March 2015

Could not inspect application package.

If you encounter the following error:
 "Could not inspect application package."

Follow below steps without wasting time on finding any other solution:
1. Remove .plist file from source after the take backup of .plist file
2. Add New .plist..like (AppName.plist)
3. Open old .plist file (backup file )
4. Just copy paste all the data from old .plist to new .plist file (copy row one by one)
5.Create build and share your app over the air.

Thanks in advance,

Bhavesh Kumbhani
IOS Software Professional 

follow on
Facebook
LinkedIn

Friday, 30 December 2011

Create .pem for Apple Push Notification

Hope you registered certificate and generate .cer very well in your apple developer account.


First careful about environment.

for development - Apple Developer IOS Push Services
for Production - Apple Production IOS Push Services


Above two different certificate see in your keychain.
Lets look in screen shot.



NOTE: In screen shot selected Production Certificate, do same for development.

Now just export selected item in your Desktop and give name apns_cer.p12


Now open terminal;
Do bellow steps.

CD Desktop

openssl pkcs12 -in apns_cer.p12 -out apns.pem -nodes -clcerts

In your Desktop successfully  generated apns.pem file for Apple Push notification(APNS), This file you will need to upload on server for communicate with apple server.



Thanks in advance,

Bhavesh Kumbhani
IOS Software Professional 

follow on
Facebook
LinkedIn