I always get the same error using ProgressHUD.
Implementation is no problem but when I call PRogressHUD.show...
I get the error:
Undefined symbols for architecture x86_64:
xCode version: 10.1
Swift version: 4.2
Thanks for your help!
According to the ProgressHUD documentation, the recommended way install the library is through CocoaPods
CocoaPods is the recommended way to add ProgressHUD to your project.
Now I don't know how exactly did you add the library to the project, but trying to install it with CocoaPods will most probably solve your issue.
The rest of your implementation should remain intact.
Related
Every time I run cmd + u I get this error:
If I run cmd + b the build is successful.
I tried to install for testing same pods as debug build but it seems that is not the problem. Also clean derived data also does not work.
Please, if you have any clue share it. Also feel free for asking about more information.
Edited:
ld: warning: Could not find or use auto-linked framework 'Lottie'
ld: warning: Could not find or use auto-linked framework 'Airship'
Undefined symbols for architecture arm64
Thanks
In podfile, after stopping using inherit from test target, and set this one to use Lottie and Airship directly, it works properly. In this way I can use this frameworks with my tests.
Flutter version 1.22.2
Xcode 12.1
the app builds fine in the simulator but trying to generate an archive for App Store fails with: building for iOS-armv7 but attempting to link with file built for iOS-arm64
Undefined symbols for architecture armv7:
"OBJC_CLASS$_STPAPIClient", referenced from:
objc-class-ref in TPSStripeManager.o
I have deployment target to 11.0.
XCode->Pods->stripe_payment->Build Setting. Change the iOS Deployment Target to 11.0. Without knowing exact reason for the problem however this worked for me.
I have attached the xcode ss.
Xcode Pods:Adding armv7 to excluded architectures solved the issue.
This works for me.
We have CLI tool written in Swift for common usage (Android and iOS developers) on macOS.
Android developers without Xcode installation get the following error:
dyld: Library not loaded: #rpath/libswiftCore.dylib
Referenced from: ~/git/myClITool/macosBin Reason: image not found
Abort trap: 6
We found that enabling Always Embed Swift Standard Libraries in Xcode would most likely help, but this CLI tool is exported with SPM, ignoring all Xcode settings.
How can I achieve this build behaviour using SPM only?
Found the following commandline argument: --static-swift-stdlib
Example usage:
swift build --static-swift-stdlib -c release
This would have produced the output we were looking for. Unfortunately since Swift 5, this argument no longer works for any platforms.
When used, SPM throws the following warning:
warning: Swift compiler no longer supports statically linking the
Swift libraries. They're included in the OS by default starting with
macOS Mojave 10.14.4 beta 3. For macOS Mojave 10.14.3 and earlier,
there's an optional Swift library package that can be downloaded from
"More Downloads" for Apple Developers at
https://developer.apple.com/download/more/
Related Swift bugticket: https://bugs.swift.org/browse/SR-648
I have a Swift Package (you can download here, its a pure Swift markdown implementation) that has two modules, one a library and the second an executable. Running swift build will correctly figure out to build the library, then builds the executable, but fails when it tries to link with the error
Undefined symbols for architecture x86_64:
"__TFE9SmarkDownSSg8markdownSS", referenced from:
_main in main.swift.o
ld: symbol(s) not found for architecture x86_64
Of course the referenced symbol is the method (or in this case property) I am trying to use (an extension to String).
I guess the question is: is there anything specific that must be done for modules within a package to ensure that they are linked together?
I've check your project and it compiles for me.
Here are few things to check:
1. Follow Install instructions from Swift.or
2. Setup you PATH.
export PATH=/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin:"${PATH}"
export TOOLCHAINS=swift
export SWIFT_EXEC=/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin/swiftc
3. Make sure you use git 2.0 or higher.
git --version
I try to intergrate the sharekit 2.0 into my app and installed the new ShareKit 2.0 as a Submodule in my local Git repository. I think I've followed the install instructions properly, but I'm getting 18 linker errors on the 'smoke test'.
Here some error:
Undefined symbols for architecture i386:
"_CFHTTPMessageCopyHeaderFieldValue", referenced from:
-[LFHTTPRequest(PrivateMethods) readStreamHasBytesAvailable] in libShareKit.a(LFHTTPRequest.o)
-[LFHTTPRequest(PrivateMethods) readStreamEndEncountered] in libShareKit.a(LFHTTPRequest.o)
I have included libShareKit.a under 'Link Binary with Libraries' in the Build Phases as indicated in the directions. It is showing up red, if that means anything.
Help would be greatly appreciated. Thanks.
Please add CFNetwork, CoreLocation and Twitter frameworks and rebuild your application.