Missing structure in cocoapod

I am using Cocoapod to convert Google-Mobile-Ads-SDK (7.4.0) to my project in swift mode. But pod.framework and foundation.framework were not found. (show red) I think this is a path problem.

My pod.framework is in Macintosh HD ▸ Users ▸ yumo ▸ Library ▸ Developer ▸ Xcode ▸ DerivedData ▸ LEARNTUBE-ejrntnmsywldgagnqwkkxwvzsqmj ▸ Build ▸ Products ▸ Debug-iphonesimulator Debug-iphonesimulator Users PodShum Desktop Desktop Desktop Desktop

I've tried before to just drag and drop the LEARNTUBE-ejrntnmsywldgagnqwkkxwvzqqj file into my pod file in my project directory but still doesn't work. I really think there are some configuration issues in my building setup. Please, help.

Below is my coding in my subcode.

platform: ios, '8.2

use_frameworks!

inhibit_all_warnings!

xcodeproj '/Users/yumo/Desktop/LEARNTUBE/LEARNTUBE.xcodeproj'

pod 'Google-Mobile-Ads-SDK', '~> 7.4.0'

After that I manually copy and paste and build the framework and put it in the project directory, another error appears.

Ld / Users / yumo / Library / Developer / Xcode / DerivedData / LEARNTUBE-ejrntnmsywldgagnqwkkxwvzsqmj / Build / Products / Debug-iphonesimulator / Pods.framework / Pods normal x86_64 cd / Users / yumo / Desktop / LEARNT EXPORT = "/Applications/Xcode-Beta.app/Content/Developer/Platform/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode-Beta.app/Contents/Developer/usr/bin:/usr/bin:/ bin: / USR / SBIN: / SBIN "/ Applications / Xcode -Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -diclib -isysroot / Applications / Xcode-Beta.app / Contents / Developer / Platforms / iPhoneSimulator.platform / Developer / SDKs / iPhoneSimulator8.2.sdk -L / Users / YMO / Library / Developer / Xcode / DerivedData / LEARNTUBE-ejrntnmsywldgagnqwkkxwvzsqmj / Build / Products / Debug-iphonesimulator -F / Users / YMO / Library / Developer / Xcode / DerivedData / LEARNTUBE-Products / Products Debug-iphonesimulator -F / Users / YuMO / Desktop / LEARNTUBE / pods / Google-Mobile-Ads-SDK / GoogleMobileAdsSdkiOS-7.4.0 -F / Users / YuMO / Desktop / LEARNTUBE / pods / LEARNTUBE-ejrntnmsywldgagnqwkkm / Build / Products Debug-iphonesimulator files / Users / yumo / Library / Developer / Xcode / DerivedData / LEARNTUBE -ejrntnmsywldgagnqwkkxwvzsqmj / Build / Intermediates / Pods.build / Debug-iphonesimulator / Pods.build / Objects-normalList.name-xr. / Pods.framework / Pods -Xlinker -rpath -Xlinker @ executable_path / Frameworks -Xlinker -rpath -Xlinker @ loader_path / Frameworks -Xlinker -rpath -Xlinker @ executable_path / Frameworks -Xlinker -rpath -Xlinker @ loader_path / Frameworks -Xlinker -objc_abi 2version -Xlinker -fobjc-arc -fobjc-link-runtime -Xlinker - no_implicit_dylibs -mios-simulator-version-min = 8.2 -framework Pods -framework Foundation -single_module -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker / Users / yumo /Developer/Xcode/DerivedData/LEARNTUBE-ejrntnmsywldgagnqwkkxwvzsqmj/Build/semi-products/Pods.build/Debug-iphonesimulator/Pods.build/Objects-Normal/x86_64/Pods_deMO /LEARNTUBE-ejrntnmsywldgagnqwkkxwvzsqmj/Build/Products/Debug-iphonesimulator/Pods.framework/Beansframework / Beansframework / Beans2 -framework Pods -framework Foundation -single_module -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker / Users / yumo / Library / Developer / Xcode / DerivedData / LEARNTUBE-ejrntnmsywldgagnqwkkxwvzsqm / Dependency / Dependency / Dependency / Dependency / Dependency / Dependency / Dependency / Dependency / Pods.build/Objects-normal/x86_64/Pods_dependency_info.dat -o / Users / YuMO / Library / Developer / Xcode / DerivedData / LEARNTUBE-ejrntnmsywldgagnqwkkxwvzsqmj / Build / Products / Debug / Pods.fonesimulator2 -framework Pods -framework Foundation -single_module -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker / Users / yumo / Library / Developer / Xcode / DerivedData / LEARNTUBE-ejrntnmsywldgagnqwkkxwvzsqm / Dependency / Dependency / Dependency / Dependency / Dependency / Dependency / Dependency / Dependency / Pods.build/Objects-normal/x86_64/Pods_dependency_info.dat -o / Users / YuMO / Library / Developer / Xcode / DerivedData / LEARNTUBE-ejrntnmsywldgagnqwkkxwvzsqmj / Build / Products / Debug-ipods.fonesimulatordat -o / Users / YuMO / Library / Developer / Xcode / DerivedData / LEARNTUBE-ejrntnmsywldgagnqwkkxwvzsqmj / Build / Products / Debug-iphonesimulator / Pods.framework / Beansdat -o / Users / YuMO / Library / Developer / Xcode / DerivedData / LEARNTUBE-ejrntnmsywldgagnqwkkxwvzsqmj / Build / Products / Debug-iphonesimulator / Pods.framework / Beans

ld: no framework found clang: error: linker command did not work with exit code 1 (use -v to invoke the call)

+3


source to share


2 answers


What is Pods.framework? Try adding the dependency again.

Delete the Pods folder in your project root and then delete the .xcworkspace file (this is actually the dir) and the Podfile.lock file after opening .xcodeproj and delete the xcconfig files under the Pods folder (they will be marked as red).

Then update the Subfile (if your target doesn't have the name "LEARNTUBE" use the actual one)

target 'LEARNTUBE' do

pod 'Google-Mobile-Ads-SDK', '~> 7.4.0'

end



after trying

pod update

after checking the target "Build Phases" → "Link Binary With Libraries" that all is well.

+3


source


my solution was really simple, but it took forever to figure out.

  • When I ran $ pod install, it created a workspace for me in the same directory as the .xcodeproj file.
  • however, I've already created a workspace to use as its parent directory.
  • so i just deleted my old workspace and went with the one that pods was creating

enter image description here




glhf!

+2


source







All Articles