kstenerud / ObjectAL-for-iPhone

Mac and iOS Audio development, minus the headache. ObjectAL is the easy Objective-C interface to OpenAL, AVAudioPlayer, and audio session management.
http://kstenerud.github.com/ObjectAL-for-iPhone
886 stars 171 forks source link

build of tvos target fails after cocoapod install #94

Open mgrider opened 8 years ago

mgrider commented 8 years ago

Should I be using the feature/tvos branch? Here's my podfile:

platform :ios, '9.0'
# Uncomment this line if you're using Swift
# use_frameworks!

inhibit_all_warnings!

target 'ActionGo' do
  pod 'ObjectAL-for-iPhone'
end

target 'ActionGoTests' do
  pod 'ObjectAL-for-iPhone'
end

target 'ActionGo-TV' do
  pod 'ObjectAL-for-iPhone'
end

Note that if I don't include the first line, I cannot install the ObjectAL-for-iPhone cocoapod at all. Also, my iPhone target compiles just fine.

Here's my build failed error:

ld: library not found for -lObjectAL-for-iPhone
clang: error: linker command failed with exit code 1 (use -v to see invocation)
mgrider commented 8 years ago

Worth noting, I have also tried the following podfile:

inhibit_all_warnings!

def shared_pods
    pod 'ObjectAL-for-iPhone'
end

target 'ActionGo' do
    platform :ios, '9.0'
    shared_pods
end

target 'ActionGo-TV' do
    platform :tvos, '9.0'
    shared_pods
end

The result there is also that I cannot install the podfile. I get this error:

[!] The platform of the target `ActionGo-TV` (tvOS 9.0) is not compatible with `ObjectAL-for-iPhone (2.5.2)`, which does not support `tvos`.
mgrider commented 8 years ago

I have also tried specifying the feature/tvos branch in my podfile, with the same result.

kstenerud commented 8 years ago

The tvos branch is only minimally tested, and doesn't have an updated podfile yet. I'll be getting a tvos device hopefully soon and will be able to add proper support then.

bruno1308 commented 8 years ago

Then why does it say 'ObjectAL for iPhone, Apple TV, and Mac'? :/