Skip to content

Instantly share code, notes, and snippets.

@dalexsoto

dalexsoto/swift.xml Secret

Created Jun 23, 2017
Embed
What would you like to do?
<!-- Add below this definition in your app.csproj, the next line is not needed -->
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
<PropertyGroup>
<_SwiftySwiftMasterAfterTargets>_CodesignNativeLibraries</_SwiftySwiftMasterAfterTargets>
<_SwiftySwiftMasterDependsOnTargets>_SwiftySwiftCopySwiftDependencies</_SwiftySwiftMasterDependsOnTargets>
<_XcodeToolChain>/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/</_XcodeToolChain>
<_TargetPlatform Condition=" '$(Platform)' == 'iPhoneSimulator' ">iphonesimulator</_TargetPlatform>
<_TargetPlatform Condition=" '$(Platform)' == 'iPhone' ">iphoneos</_TargetPlatform>
</PropertyGroup>
<Target Name="_SwiftySwiftMasterTarget"
Condition="'$(_SwiftySwiftMasterDependsOnTargets)'!=''"
AfterTargets="$(_SwiftySwiftMasterAfterTargets)"
DependsOnTargets="$(_SwiftySwiftMasterDependsOnTargets)" />
<Target Name="_SwiftySwiftCopySwiftDependencies" Condition="!Exists('$(_AppBundlePath)Frameworks/libswiftCore.dylib')">
<Message Text="Copying Swift Frameworks dependencies for %(_Frameworks.Identity) to $(_AppBundlePath)Frameworks folder" />
<Exec Command="$(_XcodeToolChain)usr/bin/swift-stdlib-tool --copy --verbose --sign $(_CodeSigningKey) --scan-executable %(_Frameworks.Identity) --scan-folder $(_AppBundlePath)Frameworks/ --scan-folder $(_AppBundlePath)PlugIns/ --platform $(_TargetPlatform) --toolchain $(_XcodeToolChain) --destination $(_AppBundlePath)Frameworks/ --strip-bitcode --resource-destination $(_AppBundlePath) --resource-library libswiftRemoteMirror.dylib"/>
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment