Comments (6)
@flashfoxter Sorry for the HUGE delay. Did you manage it? Is it happening only to iPad not iPhone?
I've only now seen you commented on this #17 closed issue.
In your case, it is happening only on the second build as well? A clean/rebuild fix it?
from ioscharts.xamarin.
Clean/rebuild is still the way I have to do it in order to build Relese or Debug on physical device. If I have built once, I have to clean to run it a second time. A huge pain as the build times are really slow when building from scratch every time...
from ioscharts.xamarin.
@flashfoxter @follesoe are you still having this issue after the most recent updates to Xamarin Studio?
from ioscharts.xamarin.
@Flash3001 I have the same issue (not with iOSCharts, but with the same approach from your article of binding swift libraries). It doesn't matter iPad or iPhone. full rebuild signs all *dylibs but when you change anything and try to debug it crashes on startup because this time target _CodesignNativeLibraries isn't executed at all
I created an issue here xamarin/xamarin-macios#4610
from ioscharts.xamarin.
Hey @vorotnyaknazar @follesoe and @flashfoxter, on May, 2017 I spent some time trying to debug it on VS and didn't have any success reproducing it, but when I read @vorotnyaknazar report I saw the Version 15.7.6 and realized the issue you are having is not on VS4M, but on the VS for Windows! It didn't cross my mind back then. I'm sorry!
I was able to reproduce it and hack it to work. I won't publish it on Nuget for now as I didn't test it much, if you can test it for a few days and tell me if it doesn't break anything else it would be really nice =)
Please replace the contents of Xamarin.Swift4.targets for the lines bellow - it will resign the Swift dylibs on every compilation (as VS does for the app itself).
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask TaskName="Microsoft.Build.Tasks.Copy" Condition="$(OS) == 'Windows'" AssemblyFile="Xamarin.iOS.Tasks.dll"/>
<UsingTask TaskName="Microsoft.Build.Tasks.RemoveDir" Condition="$(OS) == 'Windows'" AssemblyFile="Xamarin.iOS.Tasks.dll"/>
<UsingTask TaskName="Microsoft.Build.Tasks.Delete" Condition="$(OS) == 'Windows'" AssemblyFile="Xamarin.iOS.Tasks.dll"/>
<PropertyGroup Condition="'$(Platform)' == 'iPhoneSimulator'">
<CreateAppBundleDependsOn>
$(CreateAppBundleDependsOn);
_CopySwiftLibsSimulator;
</CreateAppBundleDependsOn>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'iPhone'">
<_CompileToNativeDependsOn>
_RemoveExtraLibs;
$(_CompileToNativeDependsOn);
</_CompileToNativeDependsOn>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' == 'iPhone'">
<_CoreCodesignDependsOn>
_CodesignSwift;
$(_CoreCodesignDependsOn);
</_CoreCodesignDependsOn>
</PropertyGroup>
<Target Name="_CopySwiftLibsSimulator">
<ItemGroup>
<_SwiftLibsSimulator Include="$(_AppBundlePath)SwiftFrameworksSimulator\libswift*.dylib" />
</ItemGroup>
<ItemGroup>
<_SwiftLibsDevice Include="$(_AppBundlePath)Frameworks\libswift*.dylib" />
</ItemGroup>
<Delete SessionId="$(BuildSessionId)" Files="@(_SwiftLibsDevice)" />
<Copy SessionId="$(BuildSessionId)" SourceFiles="@(_SwiftLibsSimulator)" DestinationFolder="$(_AppBundlePath)Frameworks" />
</Target>
<Target Name="_CodesignSwift">
<ItemGroup>
<_SwiftLibsDevice Include="$(_AppBundlePath)Frameworks\libswift*.dylib" />
</ItemGroup>
<PropertyGroup>
<_CodesignDisableTimestamp>False</_CodesignDisableTimestamp>
</PropertyGroup>
<Codesign
SessionId="$(BuildSessionId)"
Condition="'$(IsMacEnabled)' == 'true'"
ToolExe="$(CodesignExe)"
ToolPath="$(CodesignPath)"
CodesignAllocate="$(_CodesignAllocate)"
DisableTimestamp="$(_CodesignDisableTimestamp)"
Keychain="$(CodesignKeychain)"
Resources="@(_SwiftLibsDevice)"
SigningKey="$(_CodeSigningKey)"
ExtraArgs="$(CodesignExtraArgs)" >
</Codesign>
</Target>
<Target Name="_RemoveExtraLibs">
<RemoveDir SessionId="$(BuildSessionId)" Directories="$(_AppBundlePath)SwiftFrameworksSimulator" />
</Target>
</Project>
I wouldn't call it a final solution, but it should work as a workaround while we learn what is happing on VS side.
from ioscharts.xamarin.
@Flash3001 Thanks, Most likely I will test it today
UPDATE: it's working for me
from ioscharts.xamarin.
Related Issues (20)
- InvalidSwiftSupport - Again HOT 5
- Crash with custom ChartXAxisRenderer HOT 2
- DYLD, Symbol not found HOT 1
- XAxis value formatter not working HOT 1
- Was Successfully able to upload the ipa in the Application Loader But got an Email from Apple iTunes Connect stating there are one or more issues HOT 1
- CandleStick Chart is not showing up within a CombinedChart on the latest release of 3.2.0 HOT 4
- Works fine on Device, but not in Simulator HOT 9
- upload to appstore issue HOT 3
- Library not loaded: @rpath/libswiftCore.dylib HOT 13
- First point not showing on line graph HOT 1
- How to Control the Y axis Value difference it is always showing 100 difference HOT 1
- iOSCharts crash on iOS 13 only, update iOSCharts.Xamarin to support iOS 13 HOT 1
- Support for xCode 11 HOT 1
- Invalid Swift Support - The expected dylibs are missing from the app's Framework location, such as /Payload/CreditInfo.iOS.app/Frameworks HOT 2
- Missing library - libswiftCore.dylib error
- Custom renderers are not working HOT 2
- [Query]Are you planning to update binding to 4.0.1 ? HOT 1
- Round corners
- Not compatible with the latest .Net for iOS
- Problem with net7. Not compiling. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ioscharts.xamarin.