When i use the following code i am getting the error message that says
""_CGAffineTransformMakeRotation", referenced from:"
companyNameLbl.transform=CGAffineTransformMakeRotation(30);
Can anyone please tell me what will be the reason for this error.
If I remember correctly, those transformations require that you link against the CoreGraphics Framework.
See How to "add existing frameworks" in Xcode 4? if you have difficulties adding new frameworks in XCode.
Related
I'm trying to integrate the Google Calendar API on iOS. I've followed the iOS Quickstart. I've managed to get the objective-c version to run but I need to get it to work in Swift. I'm getting an error loading the module 'GoogleAPIClientForREST'
I'm using cocoapods as shown in the example. All looks to be loaded fine on the pod side, as you can see in the screenshot.
Has someone succeeded to run the google example in swift ?
THANKS!
Linking the library with the binary resolved the module not found error.
I then ran into another error "Value of type 'GTLRCalendarService' has no member 'authorizer'" in the signin method (Two instances of the error). Found a solution to this error here
Solved this by creating a bridging header where I included these lines
#import <GTMSessionFetcher/GTMSessionFetcher.h>
#import <GTMSessionFetcher/GTMSessionFetcherService.h>
Here's my Xcode project incase it can help someone.
Thanks
I'm trying to make an app with swift/Obj-c (Bridging Header) with parse.com
So here's my question:
I saw on many sites that you can use Parse.setApplicationId("appid","clientid")
When I try this code it says Use of unresolved Identifier 'Parse'
I imported the framework and set the bridging header in the properties.
I also imported the frameworks which are required like it's written on parse.com
All other Classes/Objects from parse can be used by swift in the code.
This problem was because of a bug in xcode... (I think the compiler failed)
After I restarted Xcode the error was gone.
After reading many SO posts about the same error, I cant seem to resolve the problem with AdMob.
Im trying to implement it into my existing app and I copied the SDK and followed the tutorial.
All compiles fine but the app crashes with:
[GADObjectPrivate changeState:]: unrecognized selector sent to instance 0xa5cc610'
They say I need to add -ObjC or -all_load to Other Linker Flags.
When I do that, I get many, many duplicate symbol errors.
Since Im upgrading a project from a different developer, I dont know
the exact structure of the code.
Any other suggestions?
When you using the Abmob API, they add 2 API for you. 1 for Debug and 1 for real.
2 API have same functions and many things.
(Try to see what happen in your debug screen, they will give you the location of duplicated folder - It in Google Library 3.0/GoogleAnalysis/Library/lib - ...debug.lib)
The simple solution is remove the Debug API and you will be fine.
Addition: Adding ObjC is right for your program, it is other problem.
I just updated to use XCode 4 and got the following error when running one of the previous projects:
Use of Undeclared Identifier 'kAudioFormatAppleIMA4'
The AVFoundation.framework is linked and is imported to that file.
Any ideas why this error started to occur?
Thanks,
Sami
Have you also included the CoreAudio.framework? I believe that kAudioFormatAppleIMA4 is in there.
When you have a problem like this, check the documentation. When you search for kAudioFormatAppleIMA4 in the docs and scroll to the top of the page you fine, it says:
Core Audio Data Types Reference
Framework
CoreAudio/CoreAudio.h
Declared in
CoreAudioTypes.h
This means you must link to CoreAudio framework and import CoreAudio/CoreAudio.h.
I'm working with developing an application for iPhone in Objective-C
Can anyone tel me how to solve this error:
".obj_class_name_CUIFramework", referenced from:
collect2:ld returned 1 exit status
literal-pointer#_OBJC#_cls_refs#CUIFramework in MF_CoreAppDelegate.o
symbol(s) not found
I tried to compile my code, i don't have idea for what this error is related to. Please help.what could be the problem?
i've added Foundation framework and UIKit framework
Your code's well-formed, so compiles just fine. When the linker tries to link your application to the frameworks you use, it finds that you reference a framework that's not been imported to your application.
It looks like your code is using a class CUIFramework, but that you haven't added the appropriate framework to your project.