Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6363845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:05:19+00:00 2026-05-25T00:05:19+00:00

I´ve tryed to receive a image, decode and save in Documents file but i

  • 0

I´ve tryed to receive a image, decode and save in Documents file but i had some problem of compatibility with Core Services library and Uikit, after modify Uikit restrictions of different version of Iphone. I have other problem:

gcc-4.2 failed with exit code 1 iphone

After right click in the error line and choose “Open These Latest Results as Transcript Text File”:

Build WSStub of project WSStub with configuration Debug

Ld build/Debug/WSStub normal i386
cd /Users/********/Desktop/WSStub
setenv MACOSX_DEPLOYMENT_TARGET 10.5
/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -L/Users/********/Desktop/WSStub/build/Debug -F/Users/********/Desktop/WSStub/build/Debug -F/Users/********/Desktop/WSStub -filelist /Users/********/Desktop/WSStub/build/WSStub.build/Debug/WSStub.build/Objects-normal/i386/WSStub.LinkFileList -mmacosx-version-min=10.5 -framework Foundation -framework CoreServices -framework UIKit -framework CoreGraphics -o /Users/********/Desktop/WSStub/build/Debug/WSStub

ld: warning: in /Users/********/Desktop/WSStub/UIKit.framework/UIKit, missing required architecture i386 in file
ld: warning: in /Users/********/Desktop/WSStub/CoreGraphics.framework/CoreGraphics, missing required architecture i386 in file
ld: duplicate symbol _UIEdgeInsetsMake in /Users/********/Desktop/WSStub/build/WSStub.build/Debug/WSStub.build/Objects-normal/i386/main.o and /Users/********/Desktop/WSStub/build/WSStub.build/Debug/WSStub.build/Objects-normal/i386/EnvioImagen.o
collect2: ld returned 1 exit status
Command /Developer/usr/bin/gcc-4.2 failed with exit code 1

I can´t solve this problem…..

main.m

...

Envio * envio = [[Envio alloc] init];


[envio setMethod:method];
NSDictionary * imagen = [[NSDictionary alloc] initWithDictionary:[envio resultValue]];
NSString *im = [[NSString alloc] initWithString: [imagen valueForKey:@"return"]];
NSData * imagenDecode = [envio base64DataFromString:im];
[envio save:imagenDecode];

...

EnvioImagen.m

#import "EnvioImagen.h"

@implementation Envio


- (void) setMethod:(NSString*)myMethod
{...}

- (void) setInvocation:(NSString*)invoc
{...}

- (void) setSoap:(NSString*)mySoap
{...}

- (void) setNameSpace:(NSString*)myNamespace
{...}


- (NSDictionary*) resultValue
{...}

- (WSMethodInvocationRef) genCreateInvocationRef
{...}


+ (NSData *)base64DataFromString: (NSString *)string
{.....}

+ (void)save: (NSData *)data
 {

    UIImage *im = [[UIImage alloc]initWithData:data];
    NSData *datai = UIImagePNGRepresentation(im);

    NSFileManager *fileManager = [NSFileManager defaultManager];
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory,     NSUserDomainMask, YES);
    NSString *directory = [paths objectAtIndex:0];
    NSString *fullPath = [directory stringByAppendingPathComponent:@"david.png"];
    [fileManager createFileAtPath:fullPath contents:datai attributes:nil];

}

@end; 

@implementation EnvioImagen

+ (id) Envio:(CFTypeRef) parameters
{
    id result = NULL; 

    Envio* invocation = [[Envio alloc] init];  

    result = [[invocation resultValue] retain];  

    [invocation release];    

    return result;    
}

@end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:05:19+00:00Added an answer on May 25, 2026 at 12:05 am

    You’ve set your SDK to one of the Mac OS X SDKs, not an iPhone SDK. Mac OS X doesn’t have the UIKit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I receive some xml-files with embedded base64-encoded images, that I need to decode and
I want to receive multi file post from image uploader.( i use this )
I tryed to email me debug_backtrace() but it just prints out the array. I
I've tryed mylyn but i cant find that feature, if anyone have test mantis
What i want to do: delete an image file from the private internal storage
I don't really care about testing file uploads, but since I have validates_attachment_presence ,
I was developing an application which can receive a url of a file, and
I have tried using fopen, file-get-contents and a curl request but I always get
Basically I receive the Image's URI from the Gallery, then created a Bitmap and
I'm currently working on posting a file from a C# application to an image

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.