Home › Forums › Ask the Flomies › iOS SDK Questions
-
AuthorPosts
-
May 13, 2013 at 6:22 pm #3506
I am meddling around with the iOS SDK and am stuck with some (basic) errors and don’t really know where to discuss them / get help.
In the readme are two ways described to include the SDK:
1) copy files in project dir
2) as a subprojectWith 1) I get a bunch of parse errors. Mostly in the “CAStreamingBasicDescription.h”.
http://pastebin.com/B8SX7CrmWith option 2) I get the following errors: http://pastebin.com/sCh0CMvZ
Can someone please give me some hint on how to fix this?
I’m using xcode 4.6 with storyboards.May 13, 2013 at 6:28 pm #3507Hi Marvin – try adding adding ‘-ObjC’ to the “Other Linker Flags” build settings option.
May 13, 2013 at 6:50 pm #3508Actually I did this.
Under Build Settings->Linking->Other Linker Flags.I also linked the Library libFloJack.a and the other necessary frameworks.
May 13, 2013 at 7:55 pm #3509OK cool. In addition try the following:
- Set ‘Compile Sources As’ to Objective-C++ (Build Settings -> Apple LLVM Compiler -> Compile Sources as)
- add the “-all_load” as well as “-ObjC” linker flags (Build Settings->Linking->Other Linker Flags)
- If you’re still encountering errors change the file extension of your implementation file to ‘*.mm’
Let me know if that unblocks you.
- This reply was modified 11 years, 6 months ago by John.
May 14, 2013 at 6:43 pm #3512thanks john for the advise. With the first two points I’m down to four linker errors:
Undefined symbols for architecture i386: "_AVAudioSessionCategoryPlayAndRecord", referenced from: -[FJNFCService disableDeviceSpeakerPlayback] in libFloJack.a(FJNFCService.o) -[FJNFCService enableDeviceSpeakerPlayback] in libFloJack.a(FJNFCService.o) "_OBJC_CLASS_$_AVAudioPlayer", referenced from: objc-class-ref in libFloJack.a(FJAudioPlayer.o) "_OBJC_CLASS_$_AVAudioSession", referenced from: objc-class-ref in libFloJack.a(FJNFCService.o) objc-class-ref in libFloJack.a(FJAudioPlayer.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
I do not have an implementation file. I just imported the project and tried to build it. There’s also a problem with the iPhone storyboard in the example project but that doesn’t really bother me 🙂
May 16, 2013 at 6:17 pm #3521Hmm make sure AVFoundation.foundation is being included.
Also I fixed the iPhone xib bug here 🙂
May 16, 2013 at 7:03 pm #3523thanks for the input .. i’ll try that later. have to do some other stuffs first.
May 18, 2013 at 5:39 pm #3539since i can’t use the sdk as i thought i focus on this problem here later.
AVFoundation is being included but it doesn’t work. But I do get different errors now 😉
Undefined symbols for architecture armv7:
and so forth …
if others have the same trouble and i can help i’m happy to provide more info but for now i stop working on this oneMay 21, 2013 at 1:16 pm #3544Sorry you’re still blocked Marvin.
I’ve had quite a few devs (10+) successfully build apps on our SDK + prototype. Not sure why you’re still having issues. Ping me via email and I’ll try to assist you offline.
-
AuthorPosts
You must be logged in to reply to this topic.