I’ve got an old project that I’ve had to do an update for. I’ve updated plugins but I still have had trouble building it in Xcode.
ld: warning: directory not found for option '-F"/Users/andy/TGSSR-CF/UnityProject/Builds/xc13d/../../Assets/Editor/Vungle/VungleSDK" "" "/Users/andy/TGSSR-CF/UnityProject/Builds/xc13d/../../Assets/Editor/SocialNetworking/FacebookSDK" '
ld: warning: directory not found for option '-F-filelist'
ld: warning: ignoring file /Users/andy/Library/Developer/Xcode/DerivedData/Unity-iPhone-fryvfobjtxhvmcevcsnuoqytgthk/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/tgssr.LinkFileList, file was built for unsupported file format ( 0x2F 0x55 0x73 0x65 0x72 0x73 0x2F 0x61 0x6E 0x64 0x79 0x6D 0x61 0x64 0x64 0x69 ) which is not the architecture being linked (armv7): /Users/andy/Library/Developer/Xcode/DerivedData/Unity-iPhone-fryvfobjtxhvmcevcsnuoqytgthk/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/tgssr.LinkFileList
ld: entry point (_main) undefined. for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Now what seems to have happened is that the -filelist option has been separated from the path that is supposed to follow it.
It’s supposed to look like this:
-filelist /Users/andy/Library/Developer/Xcode/DerivedData/Unity-iPhone-bpvsjxclwwkfxceilpgqktencjtm/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/tgrts.LinkFileList
But instead the path has ended up on it’s own which leads to the unsupported file format warning. Also the -filelist flag has somehow got appended to a -F flag which leads to the -F-filelist warning.
I found a fix on stackoverlow which has allowed me to do an error free build.
I can submit a repro case if anyone at Unity wants it.