[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] Error compile to archive proyect

From: Gonzalo Larralde
Subject: Re: [Linphone-developers] Error compile to archive proyect
Date: Tue, 24 Jun 2014 15:53:32 -0300

Are you including arm64 into the architectures you want to build the project for? 

When archiving, the compiler makes a binary for each architecture selected, and then when it tries to compile for 64 bits, taking into account that NSInteger is long instead of int, and NSUInteger unsigned long instead of unsigned int, it fails because you'll lose precision if the cast is made implicitly. 

Just change the return type to NSUInteger to match the return type of count, or cast it to int.


On Mon, Jun 23, 2014 at 8:46 PM, <address@hidden> wrote:
Hi list, i need your support.

Wen try to compile linphone to upload to appstore return this error

error: implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'int' in the XMLRPCCConnectionManager.m

#pragma mark -

- (NSArray *)activeConnectionIdentifiers {
    return [myConnections allKeys];

- (int)numberOfActiveConnections {
    return [myConnections count]; <---- in this line

#pragma mark -

Some body know how to resolve, thanks...

Linphone-developers mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]