I'm getting a warning on Xcode 9.3 which was released today. I'm using cocoapods as a dependency manager.
:-1: Target Pods-Project-test product Pods_Project-test cannot link
framework Foundation.framework
Is this related to the New Build System ?
Help is highly appreciated
Relink the pod files inside your XCode project. This is work for me. Below you can see the files in my project.
Related
My unity project with firebase integrated got errors while archiving the Xcode project. I have searched for some issues that may be the same as mine, but with no luck. I have tried to install cocoa pods and success to build the Xcode project with no errors. When I archived the Xcode project, it shows so many Undefined symbols like the picture below
Xcode Version: 14.1.
Firebase SDK Version: 10.0.1.
Unity Version: 2021.3.7f1.
It turns out that the MLKit hasn't supported Firebase 10 yet, so something went wrong. Not sure why my unity didn't show errors. I manually install pod by terminal and got errors. Then I found the same issue as mine here.
https://github.com/firebase/firebase-ios-sdk/issues/10359
The quick answer is to add a version specifier to the Podfile
pod 'FirebaseAuth', '>= 9.6.0'
enter image description here
I have changed the pod file, but no results.
I have cloned a repo for an iOS and am having a problem building / running the app. stripe-ios was added to the project as a package dependency and I am receiving the following error when resolving package dependencies:
When first running the app, since it has been a while since using XCode, I did the following:
sudo gem install cocoapods to update cocoapods
pod install
pod update
I am currently using Xcode 11.4 on macOS Catalina 10.15.4
I thought maybe this had something to do with the command line tools so I updated that with no luck. I'm afraid I don't know what "tools version" and "root" are referring to. Any help here would be greatly appreciated.
After further research, I've concluded that this was a dumb question. Just had to update XCode > 12. Thank you, and sorry
Project builds fine in Xcode 8.2.1, but in 8.3b2 the pod SQLite.swift produces >18 issues like:
Swift Compiler Error
Build a shadowed submodule 'Darwin.POSIX.basic'
module.modulemap
Errors appear to relate to redefinition of basic types such as _int8_t
Is there a simple resolution/workaround?
I was hoping to see this resolved in subsequent betas, but happy to note that this is no longer an issue.
I'm not quite sure which of these items actually resolved it for me:
Xcode Version 8.3 (8E162) - release version
Using SQLite.swift (0.11.2) - I don't think this has changed
Clean Build Folder (Cmd-Opt-Shift-K)
This issue (suspiciously similar to this post) confirms that 0.11.3 of the pod tests against Xcode 8.3
I got a project, which is built with Carthage and uses swift2.0. I am trying to run the project, but encountered this issue:
Module file was created by a newer version of the compiler.
After struggling for about 1 hour, I found that this error occurs when I trying to build Carthage project in newer version of Xcode. My version is 7.2 and the project was built using a newer compiler version.
How can I build this project in Xcode 7.2? I don't want revert my xcode version.
Any help would be appreciated.
After upgrading my xcode version to 7.3, the problem has fixed.
I am getting an error after creating a new Cordova 2.1.0 project and updating the www folder with some code from a previous PhoneGap application.
clang: error: no such file or directory: '/Users/peterbanjo/Library/Developer/Xcode/DerivedData/OpuzMobile-bhwawiqfaptmxvfosawfabudgbkj/Build/Products/Debug-iphoneos/libCordova.a'
The error only occurs when I try and run the application on a device - in the simulator it works fine.
I am running Xcode 4.5 and iOS6 on the target iPad. I have tried a clean build and libCordova.a appears in the Build Phases > Link Library With Libraries tab but it is in red.
What I found confusing with PhoneGap/Cordova 2.1.0 by upgrading from 1.4 is that there are TWO projects in my application. There is MyApplication.xcodeproj and CordovaLib.xcodeproj. The changes to resolve this issue need to be applied to the CordovaLib project.
Change "Build Active Architecture Only" to "YES"
Update the text file project.pbxproj to these values
Toggle between the build schema for the simulator and the device (Use the select menu next to the stop button. Somehow this seems to cause the changes to be detected).
Did this work for you? Did I miss something?
PS: For a better understanding of the problem take a look at this Google Forum thread
I'm using Cordova/Phonegap 2.9 and this solved my issue. Didn't touch any of the arch stuff. Everything is set to armv7 armv7s on mine.
Follow these steps to fix this problem:
Go to project settings and Build Tab.
Search for "Other Linker Flags"
Double click on the linker flags for Release and Change ${TARGET_BUILD_DIR}/libCordova.a to ${BUILT_PRODUCTS_DIR}/libCordova.a
Do the same for Debug Clean and build archive again
I had the same error and fixed it by reverting to an older version of cordova ios.
Steps to fix the issue:
Uninstall cordova-ios first, with npm uninstall cordova-ios
Install old version of cordova-ios with npm install cordova-ios#4.4.0
Remove existing ios platform with ionic cordova platform rm ios or ionic platform rm ios
After that we should add platform with ionic cordova platform add ios#4.4.0 or ionic platform add ios#4.4.0
Run ionic cordova build ios.
Instructions came from here.
Only need to remove armv6 from both YourProject and CordovaLib:
The consequences of doing this? Apparently, it's still working on iPhone 3GS, but not the previous versions..
To make it work I downloaded from http://connect.apple.com stand alone Xcode 4.4.1. With this version I can build my phonegap Application with armv6 :)
Yes, in this case you need to have two Xcode on your computer.
Look at this https://groups.google.com/forum/?fromgroups=#!topic/phonegap/ywoc9wNydZ8
works for me
--
OS X 10.8.2
XCode 4.5
iOS 6.0
PhoneGap 2.1.0
DO NOT assume that having Standard (armv7,armv7s) - $(ARCHS_STANDARD_32_BIT)
is the same as the fix above.
Manually change this value to only armv7 and that fixed it for me.
I was very frustrated.
If you did everything here and it is still not working and you have separate configuration aside from Release and Debug - for this example is Production. Make sure that 'Production' Build Configuration exists in Cordova project. Build the Cordova Project and Build + Archive your main project again.