-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ld: framework not found AVFoundation #12
Comments
Xcode doesn't let me choose WatchOS 1 in deployment targets in the UI. When I edit the project package file manually and change to |
After some googling I tried following command and the problems had gone:
|
Seems like this is not a reliable solution. Again have the same problem. Had to enable bitcode, because Xcode was complaining that WatchOS2 needs this. Is this correct: we need bitcode disabled, because MMWormhole doesn't support it. Version 2.0.0 released a few days ago, so could this be a chance to work around this problem? Sorry, I'm a newbe in iOS development, just wanted to provide Watch (1.0) support for our ionic app. |
Tried to force |
Sounds to me that the easiest short term solution might be to use XCode 6 (downloadable from Apple, installable next to XCode 7). In the meanwhile I'll try to find a solution. One way would be to package the wormhole source files with the plugin, instead of the compiled binary. That's will requires some work in our hooks though. Note that if I include a static compiled wormhole lib with bitcode enabled, it can't be built with XCode 6 anymore.. and I need this to be XCode 6 compatible for the time being. |
Yes, Xcode 6.4 works. It's a hassle to configure target family, at the moment the simulator for watch is only black, I don't see any log output from watch, my iPhone lost the pairing to the watch, I have to add some UID to a profile and this all costs so much time... But anyway, @EddyVerbruggen thank you very much for your help ❤️ |
@hgoebl It's a nightmare, I know. Thanks for sharing your adventures! 👍 |
Hi I am using this Plugin: https://github.com/leecrossley/cordova-plugin-apple-watch and made a Pull Request with new MMWormhole. In Simulator everything was fine but Build on Device was not possible with the same Linker Error --> Deleted AVFoundation and CoreMedia from Build Settings of Watch and Extension Target worked for me fine 😎 maybe it helps you... |
Thanks @Mojo90 I'll try this. Currently working on other tasks, so it'll take some time... |
@EddyVerbruggen same problem... not able to solve :-( |
Reopening as it's currently not Xcode 7 compatible as we all found out. I still require this to be Xcode 6 compatible, but I'd like to add Xcode 7 support soon. In the meanwhile though, please use Xcode 6 which you can install from here: http://adcdownload.apple.com/Developer_Tools/Xcode_6.4/Xcode_6.4.dmg |
Any updates on this? Removing AVFoundation and CoreMedia are letting me build, but it's only a matter of time before I find out if they're required :/ |
AVFoundation is not even a supported framework for the Watch targets... how does one "remove" it as some reported (ie: @NorthMcCormick and @Mojo90)? |
Thus I removed them from Watch and Extension Target because it is not supported by the Watch ;-) And I think won't get any trouble from this removal and than I was able to build on the devices |
What i mean is that AVFoundation doesn't even show up on the list when trying to add it to the list of Frameworks on the targets. So I'm wondering how you guys managed to remove it in the first place ;) |
Ok, I think I just found the culprit. On the "Project" definition of the Cordova xcode project, it seems like they automatically add a This gets inherited by all targets in the project, including the WatchKit extension ones. So you need to override the |
👌🏿 |
@robertoandrade & @Mojo90 could you elaborate on how to override the Other Linker Flags? I see the Linking section of Project files but not sure what to delete/edit. Thanks in advance |
@skotturi if you go into your main app's target 'Build Settings' tab and search for "linker" you'll see the Now if you switch over to the watch app's target as well as the extension, you'll see they also inherit those settings given it's defined at the "project" level. So for those two targets, just remove the "weak" framework reference, can probably just leave the |
@robertoandrade you just saved me hours... thanks! |
I've got problems running the HelloCordova app following instructions in README.md.
When building, the "Extension" part complains:
I tried to add AVFoundation to the libraries, but i cannot find it (maybe it has a weird name).
In projects settings, I cannot change the target version for Watch (see
export WATCHOS_DEPLOYMENT_TARGET=2.0
above).I'm using Xcode 7 (7A220), iOS 9 SDK, cordova 5.0.0, node 0.10.38
The text was updated successfully, but these errors were encountered: