Comments (13)
I could resolve this issue by removing armv7
from Valid Architectures
in the Build Settings of the HTMLString target.
If you do this you will loose support for iPhone 4S (according to this Stackoverflow answer: https://stackoverflow.com/a/52436173/7990095)
Also remove armv7
from the project/target that is using HTMLString.
from htmlstring.
I have the same issue, though archiving continues after a very long time.
from htmlstring.
Hello, can you check by using the swift5
branch? This should improve compilation times.
from htmlstring.
Archiving time with swift5
branch is as expected.
Though it may be possible that this issue only occurs when installed via cocoapods (see https://stackoverflow.com/questions/55376236/xcode-10-2-hangs-during-archive-on-arbitrary-task)
from htmlstring.
I could resolve this issue by removing
armv7
fromValid Architectures
in the Build Settings of the HTMLString target.If you do this you will loose support for iPhone 4S (according to this Stackoverflow answer: https://stackoverflow.com/a/52436173/7990095)
Also remove
armv7
from the project/target that is using HTMLString.
Hi, I removed arm7 like you said, but nothing changes. The archive process is very long. What do you suggest me?
from htmlstring.
@pLembo90 Did you try using the swift5 branch?
from htmlstring.
Hi Alex, thanks for your answer.
My project is written in swift 4.0. The only thing I did was update the pod to 4.0.2.
from htmlstring.
@pLembo90
I am using the Swift 5 branch without any problems though my project is also written in Swift 4.
from htmlstring.
@pLembo90 Did you try using the swift5 branch?
Swithing to swift5 branch helps, thank you!
from htmlstring.
I have solved the problem by setting 'build_settings / Swift Compiler - Code Generation / Optimization Level' to 'No Optimization'
And I put automation script into Podfile
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings.delete('CODE_SIGNING_ALLOWED')
config.build_settings.delete('CODE_SIGNING_REQUIRED')
#puts "set pod build settings. target[#{config.build_settings['MODULE_NAME']}] config[#{config.name}]"
end
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if target.name == 'HTMLString' and config.name == 'Release' #settings only HTMLString/Release
puts "set swift optimization level for release > none. target[#{target.name}]" #you can see this log when run 'pod update'
**config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Onone'** #this code
end
end
end
end
But, I want to make the script more short.
Please anyone let me know how can I get target.name from config
from htmlstring.
Swift 5 branch helped a lot too! Thanks, hope it will soon be released as 5.0 :)
EDIT: it seams symbols like ’
are not unescaped any longer
from htmlstring.
Compiling on swift5
also worked for me, but it isn't the most feasible thing long-term because I need to depend on it from another CocoaPod, and the podspec stuff doesn't allow me to specify a branch to compile from. It'd be great if swift5
could be merged into master
and issue #21 could be addressed so I can depend on this library from my podspec
from htmlstring.
The release with the fix should be out now, as 5.0.0
. Please open another issue if you still encounter the hang.
from htmlstring.
Related Issues (12)
- Carthage failed with exit code 128 HOT 1
- Broken Dash link HOT 2
- removingHTMLEntities doesn't work if text includes non-encoded & character HOT 2
- CocoaPod version 5.0 is not properly tagged HOT 1
- removingHTMLEntities will throw fatal error if decode JSONSerialization string HOT 4
- Should HTMLString handle curly quotes and ellipsis? HOT 2
- sporadic crashes on iOS 13 devices when using the removingHTMLEntities property HOT 7
- Infinite loop in -[NSString stringByRemovingHTMLEntities] HOT 3
- Swift package manager support HOT 1
- Privacy Manifest
- Looks good, doesn't work 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 htmlstring.