facebook / facebook-sdk-for-unity

The facebook sdk for unity.
https://developers.facebook.com/docs/unity
Other
493 stars 257 forks source link

How to remove it from ios completely? #565

Open rico345100 opened 3 years ago

rico345100 commented 3 years ago

Checklist

Goals

I want to remove Facebook SDK for the iOS project because it doesn't need it anymore. However, just removing the Facebook SDK directory cause build errors.

Expected Results

I want to build my ios app back.

Actual Results

CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'UnityFramework' from project 'Unity-iPhone')
    cd /Users/rico345100/Desktop/development/unity/Stick-Warfare-Blood-Strike-iOS/Build/SWBS
    export DEVELOPER_DIR\=/Applications/Xcode.app/Contents/Developer
    export SDKROOT\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.3.sdk
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name UnityFramework -O -enable-batch-mode -enforce-exclusivity\=checked @/Users/rico345100/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuwoahgoogidvaawzcfyzzpgnhzp/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/Objects-normal/arm64/UnityFramework.SwiftFileList -D COCOAPODS -Xcc -fmodule-map-file\=/Users/rico345100/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuwoahgoogidvaawzcfyzzpgnhzp/Build/Products/ReleaseForRunning-iphoneos/FBSDKCoreKit/FBSDKCoreKit.modulemap -Xcc -fmodule-map-file\=/Users/rico345100/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuwoahgoogidvaawzcfyzzpgnhzp/Build/Products/ReleaseForRunning-iphoneos/FBSDKLoginKit/FBSDKLoginKit.modulemap -Xcc -fmodule-map-file\=/Users/rico345100/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuwoahgoogidvaawzcfyzzpgnhzp/Build/Products/ReleaseForRunning-iphoneos/FBSDKShareKit/FBSDKShareKit.modulemap -Xcc -fmodule-map-file\=/Users/rico345100/Desktop/development/unity/Stick-Warfare-Blood-Strike-iOS/Build/SWBS/Pods/Headers/Public/FBSDKGamingServicesKit/FBSDKGamingServicesKit.modulemap -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.3.sdk -target arm64-apple-ios10.0 -g -module-cache-path /Users/rico345100/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -embed-bitcode-marker -swift-version 5 -I /Users/rico345100/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuwoahgoogidvaawzcfyzzpgnhzp/Build/Products/ReleaseForRunning-iphoneos -I /Users/rico345100/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuwoahgoogidvaawzcfyzzpgnhzp/Build/Products/ReleaseForRunning-iphoneos/FBSDKCoreKit -I /Users/rico345100/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuwoahgoogidvaawzcfyzzpgnhzp/Build/Products/ReleaseForRunning-iphoneos/FBSDKLoginKit -I /Users/rico345100/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuwoahgoogidvaawzcfyzzpgnhzp/Build/Products/ReleaseForRunning-iphoneos/FBSDKShareKit -F /Users/rico345100/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuwoahgoogidvaawzcfyzzpgnhzp/Build/Products/ReleaseForRunning-iphoneos -F /Users/rico345100/Desktop/development/unity/Stick-Warfare-Blood-Strike-iOS/Build/SWBS/Frameworks/com.unity.ads/Plugins/iOS -parse-as-library -c -j8 -output-file-map /Users/rico345100/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuwoahgoogidvaawzcfyzzpgnhzp/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/Objects-normal/arm64/UnityFramework-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/rico345100/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuwoahgoogidvaawzcfyzzpgnhzp/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/Objects-normal/arm64/UnityFramework.swiftmodule -Xcc -I/Users/rico345100/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuwoahgoogidvaawzcfyzzpgnhzp/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/rico345100/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuwoahgoogidvaawzcfyzzpgnhzp/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/UnityFramework-generated-files.hmap -Xcc -I/Users/rico345100/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuwoahgoogidvaawzcfyzzpgnhzp/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/UnityFramework-own-target-headers.hmap -Xcc -I/Users/rico345100/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuwoahgoogidvaawzcfyzzpgnhzp/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/UnityFramework-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/rico345100/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuwoahgoogidvaawzcfyzzpgnhzp/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/rico345100/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuwoahgoogidvaawzcfyzzpgnhzp/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/UnityFramework-project-headers.hmap -Xcc -I/Users/rico345100/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuwoahgoogidvaawzcfyzzpgnhzp/Build/Products/ReleaseForRunning-iphoneos/include -Xcc -I/Users/rico345100/Desktop/development/unity/Stick-Warfare-Blood-Strike-iOS/Build/SWBS/Pods/Headers/Public -Xcc -I/Users/rico345100/Desktop/development/unity/Stick-Warfare-Blood-Strike-iOS/Build/SWBS/Pods/Headers/Public/FBSDKCoreKit -Xcc -I/Users/rico345100/Desktop/development/unity/Stick-Warfare-Blood-Strike-iOS/Build/SWBS/Pods/Headers/Public/FBSDKGamingServicesKit -Xcc -I/Users/rico345100/Desktop/development/unity/Stick-Warfare-Blood-Strike-iOS/Build/SWBS/Pods/Headers/Public/FBSDKLoginKit -Xcc -I/Users/rico345100/Desktop/development/unity/Stick-Warfare-Blood-Strike-iOS/Build/SWBS/Pods/Headers/Public/FBSDKShareKit -Xcc -I/Users/rico345100/Desktop/development/unity/Stick-Warfare-Blood-Strike-iOS/Build/SWBS/Classes -Xcc -I/Users/rico345100/Desktop/development/unity/Stick-Warfare-Blood-Strike-iOS/Build/SWBS -Xcc -I/Users/rico345100/Desktop/development/unity/Stick-Warfare-Blood-Strike-iOS/Build/SWBS/Classes/Native -Xcc -I/Users/rico345100/Desktop/development/unity/Stick-Warfare-Blood-Strike-iOS/Build/SWBS/Libraries/bdwgc/include -Xcc -I/Users/rico345100/Desktop/development/unity/Stick-Warfare-Blood-Strike-iOS/Build/SWBS/Libraries/libil2cpp/include -Xcc -I/Users/rico345100/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuwoahgoogidvaawzcfyzzpgnhzp/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/DerivedSources-normal/arm64 -Xcc -I/Users/rico345100/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuwoahgoogidvaawzcfyzzpgnhzp/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/DerivedSources/arm64 -Xcc -I/Users/rico345100/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuwoahgoogidvaawzcfyzzpgnhzp/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/DerivedSources -Xcc -DCOCOAPODS\=1 -Xcc -DFBSDKCOCOAPODS\=1 -emit-objc-header -emit-objc-header-path /Users/rico345100/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuwoahgoogidvaawzcfyzzpgnhzp/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/Objects-normal/arm64/UnityFramework-Swift.h -import-underlying-module -Xcc -ivfsoverlay -Xcc /Users/rico345100/Library/Developer/Xcode/DerivedData/Unity-iPhone-cuwoahgoogidvaawzcfyzzpgnhzp/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/unextended-module-overlay.yaml -working-directory /Users/rico345100/Desktop/development/unity/Stick-Warfare-Blood-Strike-iOS/Build/SWBS

error: Build input file cannot be found: '/Users/rico345100/Desktop/development/unity/Stick-Warfare-Blood-Strike-iOS/Build/SWBS/Libraries/FacebookSDK/SDK/Editor/iOS/FBUnitySwiftPlugin.swift' (in target 'UnityFramework' from project 'Unity-iPhone')

Hope this helps.

Steps to Reproduce

Import Facebook SDK and build the project first, and then remove Facebook SDK and build.

rico345100 commented 3 years ago

Anyone?

rico345100 commented 3 years ago

Still waiting for the answer.