[msbuild] Add CoreLocation to the frameworks needed in MyiOSFrameworkBinding. Fixes #5974. (#5982)

Fixes these test failures:

    1) Test Failure : Xamarin.iOS.Tasks.NativeReferencesNoEmbedding("iPhone").FrameworksEmbeddedProperly(True)
         #RunTarget-ErrorCount
    	linker command failed with exit code 1 (use -v to see invocation)
    	Native linking failed, undefined symbol: _CLLocationCoordinate2DMake. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
    	Native linking failed. Please review the build log.
      Expected: 0
      But was:  3

    2) Test Failure : Xamarin.iOS.Tasks.NativeReferencesNoEmbedding("iPhone").ShouldNotUnnecessarilyRebuildFinalProject(True)
         #RunTarget-ErrorCount
    	linker command failed with exit code 1 (use -v to see invocation)
    	Native linking failed, undefined symbol: _CLLocationCoordinate2DMake. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
    	Native linking failed. Please review the build log.
      Expected: 0
      But was:  3

Fixes https://github.com/xamarin/xamarin-macios/issues/5974.
This commit is contained in:
Rolf Bjarne Kvinge 2019-05-03 17:20:07 +02:00 коммит произвёл GitHub
Родитель dbd8e111ee
Коммит 79f1186d8f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -46,12 +46,12 @@
<Kind>Framework</Kind>
<Link>XStaticObjectTest.framework</Link>
<LinkerFlags>-lz</LinkerFlags>
<Frameworks>Foundation ModelIO</Frameworks>
<Frameworks>CoreLocation Foundation ModelIO</Frameworks>
</NativeReference>
<NativeReference Include="..\..\..\tests\test-libraries\.libs\ios\XStaticArTest.framework">
<Kind>Framework</Kind>
<Link>XStaticArTest.framework</Link>
<Frameworks>Foundation ModelIO</Frameworks>
<Frameworks>CoreLocation Foundation ModelIO</Frameworks>
</NativeReference>
</ItemGroup>
<ItemGroup>