I'm trying to install PushWoosh into my non-ARC project using Xcode 5.0.2. I'm using the current PushWoosh SDK from GitHub dated January 8, 2014.

My project is not ARC but I added -fobjc-arc to Other Linker Flags and it made no difference. I even tried adding -fobjc-arc to the individual files that are giving me errors using the Targets -> Build Phases -> Compile Sources method and that didn't make a difference either.

Any suggestions?

asked 27 Jan '14, 23:09
Gregory's gravatar image

Gregory
1113

Hi Shader,

The link that you provided looks like the same method that I said I already tried. This is my third or fourth installation of PushWoosh. The previous ones were with your older SDK and Xcode 4.6 and they all worked fine. It's this new SDK and Xcode 5 that is giving the errors.

I have already tried adding the -fobjc-arc compiler flags and that gives me a whole new set of errors.

Undefined symbols for architecture armv7s:
  "_kCLLocationAccuracyThreeKilometers", referenced from:
      -[PWLocationTracker setDistanceToNearestGeoZone:] in PWLocationTracker.o
  "_kCLLocationAccuracyHundredMeters", referenced from:
      -[PWLocationTracker setDistanceToNearestGeoZone:] in PWLocationTracker.o
  "_OBJC_CLASS_$_CLLocation", referenced from:
      objc-class-ref in PWLocationTracker.o
  "_kCLLocationAccuracyBest", referenced from:
      -[PWLocationTracker setDistanceToNearestGeoZone:] in PWLocationTracker.o
      -[PWLocationTracker startApproximateGeoTracking] in PWLocationTracker.o
      -[PWLocationTracker locationManager:didEnterRegion:] in PWLocationTracker.o
  "_OBJC_CLASS_$_CLCircularRegion", referenced from:
      objc-class-ref in PWLocationTracker.o
  "_OBJC_CLASS_$_CLRegion", referenced from:
      objc-class-ref in PWLocationTracker.o
  "_OBJC_CLASS_$_CLLocationManager", referenced from:
      objc-class-ref in PWLocationTracker.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Thanks

permanent link
answered 28 Jan '14, 07:57
Gregory's gravatar image

Gregory
1113

1

That errors are simply missing frameworks. Simply add Corelocation framework to your project.

(28 Jan '14, 12:04) shader shader's gravatar image

Awesome! That eliminated those errors. My other projects already had that framework included so I hadn't seen those errors before. You may want to add the list of required frameworks to this page http://www.pushwoosh.com/programming-push-notification/ios/native-ios-sdk-integration/. Thanks for the help.

(28 Jan '14, 16:34) Gregory Gregory's gravatar image

-fobjc-arc is not a linker flag, but compiler flag. As an option just add Pushwoosh as project (xcodeproj file) not as a source. If you add as a source go to the build phases, compile sources phase, select Pushwoosh source, double-click and add "-fobjc-arc" as per instruction here (under important blue section):

http://www.pushwoosh.com/programming-push-notification/ios/ios-additional-platforms/unity-integration/

permanent link
answered 28 Jan '14, 06:14
shader's gravatar image

shader
3.9k7

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×326
×4

question asked: 27 Jan '14, 23:09

question was seen: 2,570 times

last updated: 28 Jan '14, 16:34