Giter Club home page Giter Club logo

Comments (13)

ndreisg avatar ndreisg commented on August 11, 2024 1

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.

ndreisg avatar ndreisg commented on August 11, 2024

I have the same issue, though archiving continues after a very long time.

from htmlstring.

alexisakers avatar alexisakers commented on August 11, 2024

Hello, can you check by using the swift5 branch? This should improve compilation times.

from htmlstring.

ndreisg avatar ndreisg commented on August 11, 2024

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.

pLembo90 avatar pLembo90 commented on August 11, 2024

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.

Hi, I removed arm7 like you said, but nothing changes. The archive process is very long. What do you suggest me?

from htmlstring.

alexisakers avatar alexisakers commented on August 11, 2024

@pLembo90 Did you try using the swift5 branch?

from htmlstring.

pLembo90 avatar pLembo90 commented on August 11, 2024

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.

ndreisg avatar ndreisg commented on August 11, 2024

@pLembo90
I am using the Swift 5 branch without any problems though my project is also written in Swift 4.

from htmlstring.

acterics avatar acterics commented on August 11, 2024

@pLembo90 Did you try using the swift5 branch?

Swithing to swift5 branch helps, thank you!

from htmlstring.

2sem avatar 2sem commented on August 11, 2024

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.

dvkch avatar dvkch commented on August 11, 2024

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.

raysarebest avatar raysarebest commented on August 11, 2024

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.

alexisakers avatar alexisakers commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.