-
Notifications
You must be signed in to change notification settings - Fork 367
Open
Labels
blocked-by-dependenciesIssues which is third-party dependencies.Issues which is third-party dependencies.type: bug
Description
[REQUIRED] Please fill in the following fields:
- Unity editor version: 2020.3.17f1
- External Dependency Manager version: 1.2.170
- Source you installed EDM4U: Unity Package Manager (manually unpacked to Packages/ folder; embedded package)
- Features in External Dependency Manager in use: iOS Resolver
- Plugins SDK in use: None
- Platform you are using the Unity editor on: Mac (MacBook Pro, Apple M1 Pro)
[REQUIRED] Please describe the issue here:
Build for iOS Simulator doesn't compile in Debug mode.
XCode throws the following error:
ld: warning: directory not found for option '-F/Users/marekzd/Library/Developer/Xcode/DerivedData/Unity-iPhone-dvncmapbtllnstgjcbjcurdvibwh/Build/Products/Debug-iphonesimulator/AppAuth'
ld: warning: directory not found for option '-F/Users/marekzd/Library/Developer/Xcode/DerivedData/Unity-iPhone-dvncmapbtllnstgjcbjcurdvibwh/Build/Products/Debug-iphonesimulator/GTMAppAuth'
ld: warning: directory not found for option '-F/Users/marekzd/Library/Developer/Xcode/DerivedData/Unity-iPhone-dvncmapbtllnstgjcbjcurdvibwh/Build/Products/Debug-iphonesimulator/GTMSessionFetcher'
ld: warning: directory not found for option '-F/Users/marekzd/Library/Developer/Xcode/DerivedData/Unity-iPhone-dvncmapbtllnstgjcbjcurdvibwh/Build/Products/Debug-iphonesimulator/GoogleSignIn'
ld: framework not found AppAuth
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Here are steps to reproduce this:
- Create a new Unity Project
- Install EDM4U
- Add
Editor/Dependencies.xmlfile<dependencies> <iosPods> <iosPod name="GoogleSignIn" version="~> 6.0"/> </iosPods> </dependencies> - Open
Project Settings / Playerand setiOS TargettoSimulator SDK - Open
Build Settings...and switch toiOSplatform - Set
Run in XCode astoDebug - Click on
Build and Run - Unity export succeeds, but XCode compilation fails with error:
framework not found AppAuth - It works fine after switching to
Releasemode
Please answer the following, if applicable:
What's the issue repro rate? (eg 100%, 1/5 etc)
100%
What happened? How can we make the problem occur?
Unity enforces x86_64 architecture for Unity-iPhone and UnityFramework targets (ARCHS=x86_64).
It seems that XCode is not able to build pods in x86_64 architecture in Debug mode.
Although it can do that in Release mode.
I'm not sure why that happens.
It might be related to Build Active Architecture Only being set for Debug builds.
It also might be related to Apple M1.
Here you can find a sample project:
EDM4UiOSSimulatorDebugBug.zip
Metadata
Metadata
Assignees
Labels
blocked-by-dependenciesIssues which is third-party dependencies.Issues which is third-party dependencies.type: bug